Hi Mainak,
if I understand your logic right, you want to have one file per record in the results array.
You can try to define the tempDoc as a DocumentList and specify this as the output Array for the loop when both list will have the same length. If the output length differ from the input length you can use pub.list:addToDocumentList service.
After that use documentToXMLString for the whole tempDocument list outside of the Loop and this will result in one file with all entries.
Please wrap the loop in a Try-Catch sequence to see if there is any step failing.
SEQUENCE (Exit on SUCCESS)
SEQUENCE (Exit on FAILURE)
Loop here
SEQUENCE (Exit on DONE)
pub.flow:getLastError
pub.flow:debugLog (log the error message from getLastError here)
Which version of wM are you using?
Screenshots seems to be from an older version prior to the 9.x versions.
Regards,
Holger
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB