Hi John, Please find my comments inline. On Tue, Jan 12, 2016 at 12:30 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? > ForEach mediator is basically about message Transformations. *You cannot call a web service inside a foreach mediator*. For your use case i think the ideal solution is using an iterator mediator with sequential parameter set to true. By using an aggregate mediator <https://docs.wso2.com/display/ESB480/Aggregate+Mediator> you can aggregate the responses from the back end. > > thanks, > john > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- *Asanka DissanayakeSoftware Engineer* *WSO2 Inc. - lean . enterprise . middleware | wso2.com <http://wso2.com/>* *email: [email protected] <[email protected]>, blog: cyberwaadiya.blogspot.com <http://cyberwaadiya.blogspot.com>, asankastechtalks.wordpress.com <http://asankastechtalks.wordpress.com> mobile: +94 71 8373821*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
