Loop input array from results of a select querry from DB


I am new to web methods. I am trying to do the following

-Select entries from a table in Db(This returns a list of IDs)
-For the IDs retrieved above, loop and perform another service invoke.

I am able to get the list of IDs but not sure how to pass them to the loop.

Any help is appreciated.


Hi Rinu,

right click on the document list returned by the adapter service and select copy.

Then go to the loop step and select the input arry property.
Paste the name of the document list there.

Inside the loop you will have a single document instead of the document list, but with the same name.
This represents the current document being processed.
Additionally there will be a variable $iteration which contains the number of the current iteration.

See Services Development Reference for further informations.