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
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
/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
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
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
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
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
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
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
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
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:
11 matches
Mail list logo