Hi,

Thank you for the answer!

The way the API is consumed is via a payload in which you need to set an
offset and pagesize. So it's an iteration of HTTP POST calls with a
different payload

Don't know if this could help to specify which pattern / approach is the
best to follow in this case?

Thanks again,

Regards,
/Tom

On Wed, Oct 16, 2019 at 4:55 PM Jean-Baptiste Onofré <[email protected]>
wrote:

> Hi Tom,
>
> You can also use a poll enricher with a aggregation.
>
> All depends about the trigger to call the webservice.
>
> Regards
> JB
>
> On 16/10/2019 16:52, Tom Coudyzer wrote:
> > Hi,
> >
> > I just started on learning Apache Camel, so please forgive me my basic
> > questions.
> >
> > I'm having a webservice called via POST having a payload with paging
> > information in it.
> >
> > What is the best way currently in Camel to produce an output which
> contains
> > the consolidated values from the calls.
> >
> > I was able to come up with a solution by using a loopDoWhile with a
> > predicate. I manipulate the paging via a header value in the Exchange.
> >
> > Are there better ways to solve this? Enrich? Aggregator?
> >
> > Thanks for educating me on this !
> >
> > Regards,
> > /Tom
> >
>
> --
> Jean-Baptiste Onofré
> [email protected]
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

Reply via email to