- This line was added.
- This line was removed.
- Formatting was changed.
Providing HTTP Headers on a SOAP Call
Builder 7.12.0 Runtime 2020.12 In the context of HTTP based adapters like the SOAP adapter, you can enable automatic header generation for dedicated headers.To do this, specify a list of header generation rules in tag requestHttpHeaderRoles on the SOAP alias.
requestHttpHeaderRoles can hold a list of definitions in format
<http header name>:<role>. The listed headers will automatically be generated with the specified role for each adapter call on this alias. These definitions overwrite the default behavior, and X-Transaction-Id, X-Request-Id, X-Sender-Host and/or X-Sender-Service will be substituted by this definition.
Refer to HTTP Header Support > Overwriting the Standard HTTP Headers for more details on header roles, and to SOAP for the list of allowed values.
Accessing HTTP Headers after a SOAP Call
Each SOAP request is transported via HTTP. The contents of the HTTP header can be accessed after the SOAP call, e.g. to check the HTTP status code.
The following example shows a SOAP adapter call with getting the HTTP header.
You can also read dedicated headers using the getServiceContextValue.
Parameter response contains the HTTP response of the SOAP call. You can also read dedicated headers using the getServiceContextValue.
Accessing the Headers
|value||Array of Any. The dynamic type for httpHeaderMap is String.|