camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Burkard <sburk...@gmail.com>
Subject Re: update HTTP request using previous response
Date Mon, 17 Mar 2014 16:15:28 GMT
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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message