Hi John,

You can find documentation for foreach mediator at :
https://docs.wso2.com/display/ESB490/ForEach+Mediator

A sample is available at :
https://docs.wso2.com/display/ESB490/Sample+18%3A+Transforming+a+Message+Using+ForEach+Mediator

However, you can also use iterate mediator with sequential parameter set to
true if you want to do a sequential execution.

Thanks,
Maheeka

On Tue, Jan 12, 2016 at 11:00 AM, John Q <[email protected]> wrote:

> Hello,
>
> I have a proxy service that looks for a file in a folder (vfs transport)
> the file has the following content
>
> <a>
>   <b>
>        <name>abc</name>
>    <b/>
> </a>
> <a>
>   <b/>
>        <name>def</name>
>   <b/>
> </a
>
> I need to call a webservice that register the name, so I need to iterate
> over the b elements, create custom payload and make a call to the endpoint,
> but I need to make it sequentially, that's why I cannot use iterate
> mediator, I have read that I have to use foreach mediator instead, but I'm
> having some issues with the foreach, can any body give me some basic
> configuration for this example?
>
> thanks,
> john
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to