Hi,

You could set the message with Exchange.HTTP_QUERY to let the http producer pick up the query string dynamically.

Here is the example

from("direct:start").setHeader(Exchange.HTTP_QUERY). simple("id=${body}")).to("http://XXXX";);

Willem
----------------------------------
Apache Camel, Apache CXF committer
Open SOA http://www.fusesource.com
Blog http://willemjiang.blogspot.com
Tiwtter http://twitter.com/willemjiang

James Carman wrote:
There is a web service at my company that returns XML documents, but
you have to query it using a query string.  I want to send the single
parameter (an id) as the body of the incoming message and I want to
append that body value to the HTTP URL.  So, I want something like:

http://my.service.url/service.cgi?id=${body}

Is that possible using the Java DSL?

Thanks,

James

p.s. Camel Rocks!  I've downloaded the MEAP Camel in Action book and
I'm working my way through it.  Very cool indeed!


Reply via email to