WSO2 ESB uses a set of pre defined properties which can be used to configure the server with heterogeneous integration requirements. This blog post describes some of the most useful properties and their usage.
<property name=
"PRESERVE_WS_ADDRESSING"
value=
"true"
/>
By default, the ESB adds a new set of WS-Addressing headers to the messages forwarded from the ESB. If this property is set to "true" on a message, the ESB will forward it without altering its existing WS-Addressing headers.
<property name=
"RESPONSE"
value=
"true"/>
Once this property is set to 'true' on a message, the ESB will start treating it as a response message. It is generally used to route a request message back to its source as the response.
<property name=
"OUT_ONLY"
value=
"true"
/>
<property name=
"ERROR_CODE"
value=
"100100"
/>
Use this property to set a custom error code on a message which can be later processed by a Synapse fault handler. If the Synapse encounters an error during mediation or routing, this property will be automatically populated.
<property name=
"ERROR_MESSAGE"
value=
"100100"
/>
<property name=
"messageType"
value=
"text/xml"
scope=
"axis2"
/>
<property name=
"ContentType"
value=
"text/xml"
scope=
"axis2"
/>
<property name=
"disableAddressingForOutMessages"
value=
"true"
scope=
"axis2"
/>
<property name=
"transportNonBlocking"
action=
"remove"
scope=
"axis2"
value=
"true"
/>
<property name=
"INCOMING_TRANSPORT"
expression=
"get-property('TRANSPORT_IN_NAME')"
/>
<property name=
"POST_TO_URI"
scope=
"axis2"
value=
"true"
/>
<property name=
"CONTENT_TYPE"
value=
"text/xml"
scope=
"axis2"
/>
application/octet-stream
.<property name=
"NO_ENTITY_BODY"
action=
"remove"
scope=
"axis2"
/>
<property name=
"HTTP_SC"
value=
"true"
scope=
"axis2"
/>
<property name=
"REST_URL_POSTFIX"
value=
"/context"
scope=
"axis2"
/>
- $body
- $Header
The SOAP 1.1 or 1.2 header element. For example, the expression $header/wsa:To refers to the addressing To header regardless of whether this message is SOAP-11 or SOAP-12
- $axis2
Prefix for Axis2
MessageContext properties. This is used to get the property value at the
axis2 scope. For example, to get the value of Axis2 message context
property with name REST_URL_POSTFIX, use the XPath expression $axis2:REST_URL_POSTFIX.
Prefix for Synapse
MessageContext properties and gets a property at the default scope. For
example, to get the value of Synapse message context property with name
ERROR_MESSAGE, use the XPath expression $ctx:ERROR_MESSAGE.
Prefix used to get the
transport headers. For example, to get the transport header named
Content-Type of the current message, use the XPath expression $trp:Content-Type.
HTTP transport headers are not case sensitive. Therefore,
$trp:Content-Type and $trp:CONTENT-TYPE are regarded as the same.
Comments
Post a Comment