Use the service ‘pub.flow:setResponse2’, rather than relying on the implicit service output.
Then map the input stream from your original file/etc to the “responseStream” input.
The hard part is getting your input stream, because if you are reading records from a DB, you will need to convert each record into a json or xml string fragment and then append it to a temporary file. After which you would then read the file as input stream, which you would then map to setResponse2 as above.
Ideally you would want to avoid having to create a file, however I don’t think you can do that in flow. you would have to write a java service to avoid that.
regards,
John.
#export-to-excel#webMethods#DSP