Hi All,
This is the route code.
.dotry()
.beanRef("requestProcessor","beginRequest")
.setBody(body())
.to("cxf:bean:--id--")
.doCatch(SoapFault.class)
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception{
SoapFault fault =
exchange.getProperty(Exchange.EXCEPTION_CAUGHT, SoapFault.class);
LOG.info("fault ::::: "+ fault);
}
.to("seda:rollbackOperation")
Here I’m sending the SOAP request to the to() endpoint, if I get soap fault
response then doCatch() will catch it but after that I need the SOAP fault
message which was the response.
I tried LOG messge : fault is null, tried exchange.getException() even this
it’s showing null, printed body, null.
Question:
I’m able catch the exception but need soapfault response message in catch
block?
I don't want to use SoapFaultIntercepter in CXF.
--
View this message in context:
http://camel.465427.n5.nabble.com/Web-service-SOAP-fault-handling-tp5757883.html
Sent from the Camel - Users mailing list archive at Nabble.com.