Hi,
You can get the soap fault message detail by checking out the
responseBody from the HttpOperationFailedException.
Willem
gnanda wrote:
Hi All,
I am using camel 2.2 with servicemix 4.2
I am trying to retrieve soapFault message from HttpOperationFailedException
I could able to print the exception as below
Exception ex =
exchange.getProperty(Exchange.EXCEPTION_CAUGHT,Exception.class);
log.info(ex);
It prints the message as below
"org.apache.camel.component.http.HttpOperationFailedException: HTTP
operation failed invoking
http://localhost/orderapp/OrderProcess?httpClientConfigurerRef=com.pf.simpleconsumer.camelrouter.DefaultHttpClientConfigurer
with statusCode: 500"
The above string does not have soapfault message.How would I extract
soapfault message in my onException() block ?
How do I retrieve the fault code?
Any help is appreciated