In addition to standard XPath functions, the ESB supports the following custom functions for working with XPath expressions:
...
If you provide only the property name without the scope, the default Synapse scope will be used.
Default Scope
Message context properties within the Synapse scope can be retrieved from the default scope. In addition to the user-defined properties, you can retrieve the following special properties from the default scope.
Name | Return Value |
To | Incoming URL as a String, or empty string («») if a To address is not defined. |
From | From address as a String, or empty string («») if a From address is not defined. |
Action | SOAP Addressing Action header value as a String, or empty string («») if a an Action is not defined. |
FaultTo | SOAP FautTo FaultTo header value as a String, or empty string («») if a FaultTo address is not defined. |
ReplyTo | ReplyTo header value as a String, or empty string («») if a ReplyTo address is not defined. |
MessageID | A unique identifier (UUID) for the message as a String, or empty string («») if a MessageID is not defined. This id ID is guaranteed to be unique. |
FAULT | TRUE if the message has a fault, or empty string if the message doesn't does not have a fault. |
MESSAGE_FORMAT | Returns pox, get, soap11, or soap12 depending on the message. If a message type is unknown this returns soap12 |
OperationName | Operation name corresponding to the message. A proxy service with a WSDL can have different operations. If the WSDL is not defined, ESB defines fixed operations. |
Axis2 scope
Message You can retrieve message context properties within the Axis2 scope can be retrieved from the Axis2 scope. using the following syntax.
Syntax:get-property('axis2', String propertyName)
Transport scope
Message You can retrieve message context properties within the transport scope can be retrieved from the transport scope. scope using the following syntax.
Syntax:get-property('transport', String propertyName)
Registry scope
Properties You can retrieve properties within the registry can be retrieved from the registry scope using the following syntax.
Syntax:get-property('registry', String registryPath@propertyName)
get-property('registry', String registryPath)
System scope
You can retrieve Java System properties can be retrieved from the system scope using the following syntax.
Syntax:get-property('system', String propertyName)
Note: system scope is only available in WSO2 ESB 4.8.0 or later versions