camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <willem.ji...@gmail.com>
Subject Re: reading soapfault message from HttpOperationFailedException
Date Fri, 11 Jun 2010 03:40:12 GMT
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
> 
> 


Mime
View raw message