dp:set-request-header
Adds or replaces a protocol-specific request header.
Namespace declaration
xmlns:dp="http://www.datapower.com/extensions"extension-element-prefixes="dp"
Syntax
<dp:set-request-header
name="field"
value="value"/>
Attributes
name="field"- The
xs:stringthat identifies the header field. value="value"- The
xs:stringthat specifies the value for the header field.
Guidelines
The
dp:set-request-header element or replaces a protocol-specific response
header based on the value of the name attribute.- When the header does not exist, add the header.
- When the header exists, replace the header.
Supported protocols are HTTP, HTTPS, and IBM® MQ.
The extension passes all arguments as XPath expressions.
Example
…
<dp:set-request-header name="$mqHeader-1" value="$contents"/>
…