Is it possible to set two inputs for pub.flow:setResponse2

What product/components do you use and which version/fix level are you on?

Software AG webMethods Integration Server 10.5.0.0

Is your question related to the free trial, or to a production (customer) instance?

Production Customer Instance

What are you trying to achieve? Please describe it in detail.

I want to send a Object data type to a response from a calling application through Rest API web service.

Do you get any error messages? Please provide a full error message screenshot and log file.

No

Have you installed all the latest fixes for the products and systems you are using?

Yes

in information available here: pub.flow:setResponse2 (softwareag.com)

"

Specify responseString, responseBytes, or responseStream. If you specify more than one, the pub.flow:setReponse2 service looks for the parameters in the following order and uses the first one that it finds: responseString, responseBytes,responseStream.

"

My plan is below

<elements>
     <element>val1</element>
     <element>val2</element>
</elements>

Is it possible to send the val1 in Json String and the val2 in byte data type in one response?

This is not possible. Would you be able to elaborate your requirement?

Take a look at Multipart MIME messages: Reverb

Percio