Guys, I got it working. Cheers.
--
View this message in context:
http://camel.465427.n5.nabble.com/Difficulty-in-extracting-data-from-CxfPayload-tp5768422p5768508.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Hi Stephen
When I use Document document = exchange.getIn().getBody(Document.class); i
see document object content as follows
[#document: null]
any additional changes that will fix this ?
--
View this message in context:
http://camel.465427.n5.nabble.com/Difficulty-in-extracting-data-from-CxfP
camel headers. See
http://camel.apache.org/xpath.html for details).
Best regards
Stephan
-Original Message-
From: siddhesh [mailto:siddhesh_deod...@persistent.co.in]
Sent: Montag, 22. Juni 2015 09:30
To: users@camel.apache.org
Subject: RE: Difficulty in extracting data from CxfPayload
Hi
Hi Siano, Thanks
I tried this code
String bodyStr = exchange.getIn().getBody(String.class);
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
DocumentBuilder builder;
builder = factory.newDocumentBuilder();
Document document = builder.parse(new InputSource(new
StringReader(
Hi,
Well, if you want to process your payload as a DOM Document (e.g. in some
processor), why don't you just do a exchange.getIn().getBody(Document.class) ?
There are type converters from CxfPayload to Document...
If you want to access the address directly (e.g. as part of the camel route),
you