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.in...@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. >