Skip to Content
0
Jan 24, 2017 at 04:04 AM

Call GET RESTful service based on XML elements

198 Views

Hi Experts,

Say I have a sample input XML as below

<root>
	<element>http://www.foo.com/getStatus/1234</element>
	<element>http://www.foo.com/getStatus/4567</element>
	<element>http://www.foo.com/getStatus/8910</element>
<root>

In the iFlow, I need to traverse the XML, get all the values in each of the elements, use them as Address in the Receiver HTTP channel and trigger the service call.

So in the sample code, there has to be 3 GET web service calls.

For the response processing, I don't need to aggregate them. So I'm thinking of just writing each response for every call to the Data Store.

Is this feasible?

Thanks!