This is first processsor of my route where i am trying to unmarshall request
message.

class CxfMessageToXMLString implements Processor {
                @SuppressWarnings("unchecked")
                @Override
                public void process(Exchange exchange) throws Exception {
                        Message inMessage = exchange.getIn();
                        // bring session for convenience to exchange
                        org.apache.cxf.message.Message cxfMessage =
(org.apache.cxf.message.Message)
inMessage.getHeader(CxfConstants.CAMEL_CXF_MESSAGE);
                        exchange.setProperty(WebServiceConstants.SESSION,
cxfMessage.get(WebServiceConstants.SESSION));
                        CxfPayload<SOAPBody> requestPayload =
inMessage.getBody(CxfPayload.class);
                        List<Element> inElements = requestPayload.getBody();
                        XmlConverter converter = new XmlConverter();
                        //String documentString =
converter.toString(inElements.get(0).cloneNode(true), exchange);
                        String documentString = 
converter.toString(inElements.get(0), exchange);
..... ....................................
......................}





--
View this message in context: 
http://camel.465427.n5.nabble.com/Camel-CXF-strips-all-the-xml-elemets-and-attributes-and-send-only-data-with-whitespace-tp5721973p5722083.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to