ResponseBody Property
The response body to be sent to the client.
Data Type
StringDefault Value
""Remarks
This property holds the response body that may be assigned to the HTTP response.
In a typical scenario a HTTP listener is used to receive the request and send the response. The AS2 connector will process the request and generate the response, but will rely on the user to pass the response parameters to the HTTP listener so it can respond to the original HTTP request.
After processing the request the connector will populate ResponseHeaders and ResponseBody.
In the HTTP listener Responses section set the Body to #[attributes.ResponseBody]. Add a new header with value 'Content-Type' and value attributes.ResponseHeaders.'Content-Type'.
The corresponding Configuration XML may look like:
<http:response > <http:body ><![CDATA[#[attributes.ResponseBody]]]></http:body> <http:headers ><![CDATA[#[output applicaton/java --- { "Content-Type" : attributes.ResponseHeaders.'Content-Type' }]]]></http:headers> </http:response>
This property is not available in the Sender.