/n software Connectors for MuleSoft
/n software Connectors for MuleSoft
Questions / Feedback?

ResponseHeaders Property

A collection of response headers.

Data Type

String

Default Value

""

Remarks

This property holds an object of response headers 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.

 
 
Copyright (c) 2019 /n software inc. - All rights reserved.
/n software Connectors for MuleSoft - Version 16.0 [Build 7240]