Apache Synapse supports standard XPath functions and variables through its underlying XPath engine. Apart from standard XPath functions, there are several custom XPath functions and variables defined by Synapse to retrieve various message context properties.
Get property function retrieves a property from the message context at the given scope. If the scope is not specified, property is retrieved from the default synapse scope.
Syntax:
Message context properties residing in Synapse scope can be retrieved from the default scope. These are the properties directly set on the Synapse MessageContext instance. Apart from user defined properties, following special properties can also be retrieved from the default scope.
Message context properties residing in axis2 scope can be retrieved from the axis2 scope. These are the properties set on the underlying Axis2 MessageContext object.
Message context properties residing in transport scope can be retrieved from the transport scope. These are the transport headers set on the MessageContext.
Properties residing in registry can be retrieved from the registry scope.
Java System properties can be retrieved from the system scope.
Returns the base64 encoded value of the argument.
Syntax:
Returns the base64 decoded value of the argument.
Syntax:
Returns the URL encoded value of the argument.
Syntax:
There are several XPath variables supported by Synapse. These are used for accessing various properties from the message context
These XPath variables get the properties at various scopes.
Variable prefix for accessing the MessageContext properties in default scope.
i.e To get the property named 'foo' at the default scope use the following XPath expression
Variable prefix for accessing the axis2 MessageContext properties
i.e. To get the property named 'messageType' use the following XPath expression
Variable prefix for accessing transport headers of the message
i.e. To get the transport header named Content-Type use the following XPath expression
Variable prefix for accessing URL parameters of the message
i.e. To get the URL parameter named 'bar' use the following XPth expression
Get the message body
Get the soap header