camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: update HTTP request using previous response
Date Mon, 17 Mar 2014 16:19:22 GMT
Or the dynamic router
http://camel.apache.org/dynamic-router.html

But its often also easier to write a bean with a method, that has the
looping logic, and then use a producer template (or pojo producing) to
call the http and get the reply, and process it there.
http://camel.apache.org/producertemplate.html
http://camel.apache.org/pojo-producing.html

Then from a Camel route its just calling the bean.
http://camel.apache.org/bean

On Mon, Mar 17, 2014 at 5:15 PM, Stephan Burkard <sburkard@gmail.com> wrote:
> You could perhaps use the Loop EIP: https://camel.apache.org/loop.html
>
> It uses the result of the previous loop iteration for the next. You have to
> define the criteria to stop the loop (for example as header variable).
>
> Hope this helps
> Stephan
>
>
>
>
> On Mon, Mar 17, 2014 at 3:13 AM, aidatechinc <HFAOUAZ@aidatech.com> wrote:
>
>> Hello,
>>   What is the best way to update a HTTP request using the response. So the
>> service returns a position and this position needs to be sent in subsequent
>> request.
>>
>> 1) post message with position 0
>> 2) read response
>> 3) update request with new position from response
>> 4) go back and post again
>>
>>
>> any guide will be appreciated.
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/update-HTTP-request-using-previous-response-tp5748902.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Make your Camel applications look hawt, try: http://hawt.io

Mime
View raw message