Hello mengesha,
I am not sure if the sample attached provides exactly what you need, but maybe it will get you started. It’s a Java service with the following specs for inputs and outputs as listed below.
It transforms an input StringList into individual elements nested under the outDocument.
This service adds a suffix value, a sequence number, to the itemName nested under the outDocument.
@param inStringList an array of strings
@param itemName the name of the element nested under the outDocument document.
This service will add a sequence number as a suffix to the itemName value.
For example, if the value entered is workOrder, the elements nested inside outDcoument
will be workOrder_1, workOrder_2, workOrder_3,…
@param outDocument a document with the nested itemName values.
SampleList.zip (11.1 KB)
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services