camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem Jiang <>
Subject Re: Using BODY as HTTP Query String Parameter...
Date Mon, 28 Jun 2010 02:40:38 GMT

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

Here is the example


Apache Camel, Apache CXF committer
Open SOA

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!

View raw message