camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Goyal, Arpit" <arpit.go...@sap.com>
Subject RE: How to consume remote rest url and how to write given json response in a text file.
Date Wed, 12 Oct 2016 21:50:36 GMT
See this FAQ about dynamic to
http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html 

Clause pointed out recently. We used 'toD' from 2.16.3 version and tested camel-http component
which works. 

So the dynamic part like product id or date could be headers, properties etc set by processor
before toD and in the URL you could have productid=${header.pid}&date=${header.pdate}

Regards,
Arpit.

-----Original Message-----
From: Gunjara [mailto:mgunjara.galaxe@gmail.com] 
Sent: Wednesday, October 12, 2016 5:56 AM
To: users@camel.apache.org
Subject: Re: How to consume remote rest url and how to write given json response in a text
file.

Hi Tomohisa Igarashi, Thanks for your reply.
I need to pass parameters dynamically like
http://yourhost.domain/path/to/rest/resource/productid=1234&date=10122016 .
How I can do that , please help me . If you have any sample git code plz
send me.

Regards,
Gunjara
 



--
View this message in context: http://camel.465427.n5.nabble.com/How-to-consume-remote-rest-url-and-how-to-write-given-json-response-in-a-text-file-tp5788666p5788686.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message