Re: Getting a node from an XML using camel-cxf

2012-10-03 Thread Claus Ibsen
On Wed, Oct 3, 2012 at 9:33 PM, Christian Müller wrote: > E.g. convert the body into a dom, sax or stax source and do whatever you > need to do. > Yes or use some XPath API to grab whatever you need. In fact you can use the @XPath bean parameter binding if you want Camel to do that for you. Or j

Re: Getting a node from an XML using camel-cxf

2012-10-03 Thread Christian Müller
E.g. convert the body into a dom, sax or stax source and do whatever you need to do. Best, Christian Sent from a mobile device Am 02.10.2012 23:46 schrieb "suralk" : > Hi Christian, > I am using the Camel CXF component with the MESSAGE dataFormat (using > PAYLOAD throws an exception, so have to

Re: Getting a node from an XML using camel-cxf

2012-10-02 Thread Raul Kripalani
/CAMEL-5679 > > > > > > From: Raul Kripalani > To: users@camel.apache.org > Sent: Wednesday, October 3, 2012 11:06 AM > Subject: Re: Getting a node from an XML using camel-cxf > > I can't think of a Camel functionality that will allow you to store the > result in a

Re: Getting a node from an XML using camel-cxf

2012-10-02 Thread Sura Monday
I have created a feature request now: https://issues.apache.org/jira/browse/CAMEL-5679 From: Raul Kripalani To: users@camel.apache.org Sent: Wednesday, October 3, 2012 11:06 AM Subject: Re: Getting a node from an XML using camel-cxf I can't think

Re: Getting a node from an XML using camel-cxf

2012-10-02 Thread Raul Kripalani
I can't think of a Camel functionality that will allow you to store the result in a HashMap entry out-of-the-box. You'll have to handle this inside a bean or script for now. Feel free to open a ticket in our JIRA to request this feature [1]. Maybe we could create a new type of "setXYZ" DSL that al

Re: Getting a node from an XML using camel-cxf

2012-10-02 Thread suralk
Hi Christian, I am using the Camel CXF component with the MESSAGE dataFormat (using PAYLOAD throws an exception, so have to stick with MESSAGE format with respect to this particular web service). Similar to balkishore, I do not want to set any header based on the extracted soap element. Rather, I

Re: Getting a node from an XML using camel-cxf

2012-09-27 Thread balkishore
Hi Raul, Thanks for replying. But for saving the extracted element, I use a Hashmap. I just want to extract the element and store it in the Hashmap and not in the header itself. -- View this message in context: http://camel.465427.n5.nabble.com/Getting-a-node-from-an-XML-using-camel-cxf-tp57

Re: Getting a node from an XML using camel-cxf

2012-09-27 Thread Raul Kripalani
When you extract the SOAP header, you surely want to store it somewhere. Camel lets you store it in a message header, a property or you can overwrite the body with the result of the expression. Use setHeader, setProperty or setBody (or transform) accordingly. I think if you use the CXF POJO or PA

Re: Getting a node from an XML using camel-cxf

2012-09-27 Thread balkishore
Hi Lars, I would like to get that element, and not to set my header. If i am not wrong, i cannot use, xpath along with getHeader() expression. -- View this message in context: http://camel.465427.n5.nabble.com/Getting-a-node-from-an-XML-using-camel-cxf-tp5720008p5720085.html Sent from the Camel

Re: Getting a node from an XML using camel-cxf

2012-09-26 Thread Lars Lipinski
if you had errors in your XPath expression, maybe you didn't take care of the namespaces? Here's an example in Java DSL how to extract text content of a node into a header: .setHeader( "ExtractedServiceGroupId", xpath("//axis2:ServiceGroupId/text()").namespace("axis2", "http://ws.apache.org/namesp

Re: Getting a node from an XML using camel-cxf

2012-09-26 Thread Christian Müller
Use the Apache Camel CXF component [1] with the MESSAGE dataFormat to receive the request. Afterwards you can use the XPath [2] or XQuery component to retrieve the needed data. Something like /soapenv:Envelope/soapenv:Header/wsa:MessageID [1] http: