camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Appending value to XML - Camel Blueprint
Date Wed, 08 Jan 2014 22:15:26 GMT
Did you checked [1] or [2]?

<simple>${bodyAs(String)}${property[empName]}</simple>
or
<ruby>$body$property['empName']</ruby>
or
...

[1] http://camel.apache.org/simple.html
[2] http://camel.apache.org/scripting-languages.html

Best,

Christian
-----------------

Software Integration Specialist

Apache Member
V.P. Apache Camel | Apache Camel PMC Member | Apache Camel committer
Apache Incubator PMC Member

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Sun, Jan 5, 2014 at 4:00 AM, camel user <cameluser2014@yahoo.in> wrote:

> I want to append a property set in the first route to the resultant XML of
> the serviceURI hit from the second route. If its possible, please let me
> know how.
>
> Sample snippet below.
>
> <route>
> --some stuff goes here--
> <setProperty
> propertyName="empName"><xpath>/result/empName/text()</xpath></setProperty>
> --some stuff goes here--
> <to uri="direct:route2">
> </route>
>
> <route>
> <from uri="direct:route2">
> <to uri="serviceURI"/>
> --${body} will have the resultant xml--
> --here I want to append empName(property defined in route 1) as an XML tag
> to ${body}--
> </route>
>
>
> Thanks!

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message