HTTP Header Setter mediation primitive properties
You can specify values for mediation primitive properties either by using the property fields in the IBM® Integration Designer user interface or by using an XML format. The property field names displayed in IBM Integration Designer are generally different from the property names used when building a mediation flow using XML code. In the following information, icons are used to identify each property name used in IBM Integration Designer and the corresponding XML name. (Where applicable, XML names that are required, but not shown in IBM Integration Designer, are also described.)
HTTP Header Elements headerElements
HTTP Header elements on an SMO node.
|
Validate input validateInput
If true, causes the input message to be validated before the mediation is performed.
Required | Yes |
Valid values | Boolean Note:
|
Default | false |
Considerations
- If the Mode property is "Modify" and a header cannot be found, a new header will be created.
- If the XPath expression of the copy target resolves to more than one element in the SMO, a runtime exception occurs.
- The location of the header within the SMO depends upon its type; control, spec or user.
- If the Validate input property is true and the input message is invalid, a runtime exception occurs.
Sample XML code
<node displayName="addHeader" name="addHeader2" type="HTTPHeaderSetter">
<table name="headerElements">
<row>
<property name="mode" value="Create"/>
<property name="headerName" value="Method"/>
<property name="valueIsXPath" value="false"/>
<property name="value" value="POST"/>
</row>
</table>
<inputTerminal/>
<outputTerminal>
<wire targetNode="nextNode"/>
</outputTerminal>
<failTerminal/>
</node>