camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suralk <>
Subject how to access a SOAP message part inside a route
Date Tue, 02 Oct 2012 05:51:22 GMT
Hi All,
I have a route that gets some data from a remote we service and writes to a


This works fine, but I want to access only some of the elements in this SOAP
message. I tried a processor like the one shown below, but it is returning
null. Can someone point out what is wrong in this route?
I am assuming that I should not cast the SoapBody to Cxfpayload because the
dataformat at the endpoint is MESSAGE. However, I do not know an

.process(new Processor() {
                    public void process(final Exchange exchange) throws
Exception {
                        CxfPayload<SoapBody> requestPayload =
                        List<Source> inElements =
                        List<Source> outElements = new ArrayList<Source>();  
                        for(Source element:inElements)
                        	Element in = new
                        	System.out.println("++++++++++++++" +
in.getNodeValue());// prints null

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message