camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henryk Konsek <hekon...@gmail.com>
Subject Re: how to get the soap body from exchange.
Date Wed, 13 May 2015 08:45:55 GMT
Hi,

Try the following approach:

   SOAPMessage soapMessage = exchange.getIn(SOAPMessage.class);

The message contains the body. The message is not a body :) .

Cheers.

śr., 13.05.2015 o 09:59 użytkownik jainmcs03 <tojayendran.inbox@gmail.com>
napisał:

> Team,
>
> I tried additional ways below, but getting SOAPMessage as null.
>
> //              SOAPMessage soapMessage =
> exchange.getIn().getBody(SOAPMessage.class);
> //              SOAPMessage soapMessage =
> exchange.getIn().getHeader(CxfConstants.CAMEL_CXF_MESSAGE,
> SOAPMessage.class);
> //              SOAPMessage soapMessage = (SOAPMessage)
> exchange.getIn().getBody(List.class).get(0);
> //              System.out.println("Inside RealResFormatProcessor
> :soapMessage :
> "+soapMessage);
>
>
> Regards
> Jayendran
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/how-to-get-the-soap-body-from-exchange-tp5767050p5767052.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message