camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jainmcs03 <tojayendran.in...@gmail.com>
Subject how to get the soap body from exchange.
Date Wed, 13 May 2015 07:37:30 GMT

Team,

In Webservice proxy(MESSAGE format) , want to separate the soap body alone.
How to do it?

I tried below but its not worked. advise pls.

//		SOAPMessage soapMessage = (SOAPMessage)
exchange.getIn().getBody(List.class).get(0);
//		System.out.println("Inside RealResFormatProcessor :SOAPMessage :
"+soapMessage);
//        try {
//            SOAPPart sp = soapMessage.getSOAPPart();
//            SOAPEnvelope se = sp.getEnvelope();
//            SOAPBody sb = se.getBody();
//            String responseText = sb.getTextContent();
//            System.out.println("Inside RealResFormatProcessor :String :
"+responseText);            
//        } catch (Exception e) {
//            e.printStackTrace(); 
//        }

Regards
Jayendran



--
View this message in context: http://camel.465427.n5.nabble.com/how-to-get-the-soap-body-from-exchange-tp5767050.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message