Hi,
Does somebody knows why this syntax is not accepted
from("direct:wayne-get-token").setExchangePattern(ExchangePattern.InOut)
.doTry()
.to("https4://wayne-token-service")
.choice()
.when().simple("${header.CamelHttpResponseCode} == '200'")
.convertBodyTo(String.class)
.setHeader("wayne-token").groovy("body.replaceAll('\"','')")
.log(">> Wayne Token : ${header.wayne-token}")
.endChoice()
.doCatch(Exception.class) ////// --> CANNOT RESOLVE METHOD
doCatch(java.lang.Class (java.lang.Exception>)
.log(">> Exception")
.endDoTry();
but well this one
from("direct:wayne-get-token").setExchangePattern(ExchangePattern.InOut)
.doTry()
.to("https4://wayne-token-service")
.doCatch(Exception.class)
.log(">> Exception")
.endDoTry();
Regards,
Charles