Hi See this FAQ http://camel.apache.org/how-do-i-use-dynamic-uri-in-to.html
On Mon, Apr 22, 2013 at 10:51 AM, [email protected] <[email protected]> wrote: > Hi, > How to set a dynamic value as a parameter to an endpoint? > > Payload : > <person> > <name>john</name> > <acno>9876543210</acno> > </person> > > route : > <route> > <from uri="http://localhost:8092/test/"/> > <setProperty propertyName="acno"> > <xpath resultType="java.lang.String">//person/acno</xpath> > </setProperty> > <setProperty propertyName="name"> > <xpath resultType="java.lang.String">//person/name</xpath> > </setProperty> > <to > uri="https://server/rest/services/test?accountno=${property.acno}&accountname=${property.name}"/> > </route> > > Any help in resolving this issue or providing a workaround would be very > appreciated. > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/xpath-value-as-a-parameter-to-an-endpoint-tp5731216.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. FuseSource is now part of Red Hat Email: [email protected] Web: http://fusesource.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen
