Can I have a look at the route ? Here is a test[1] of camel-cxf that you can take a look.
[1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerPayloadTest.java -- Willem Jiang Red Hat, Inc. FuseSource is now part of Red Hat Web: http://www.fusesource.com | http://www.redhat.com Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English) http://jnn.javaeye.com (http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang Weibo: willemjiang On Friday, November 2, 2012 at 4:51 PM, Sachin wrote: > Hi Willem, > > I have tried that without clononing the node still i got blank string. I > even tried with genric approach like below: > StringWriter buffer = new StringWriter(); > TransformerFactory.newInstance().newTransformer().transform( > new DOMSource(inElements.get(0)), new StreamResult(buffer) > ); > documentString = buffer.toString(); > > Still it doesnt seem to work. Problem here is i am not getting any element > and attribute in request xml message. > > Regards > Sachin > > > > -- > 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-tp5721973p5722011.html > Sent from the Camel - Users mailing list archive at Nabble.com > (http://Nabble.com).