Fetch - IBM WebSphere XS40 Command Reference Manual

Datapower xml security gateway
Table of Contents

Advertisement

Syntax
extract input-context output-context expression [variable]
Parameters
input-context
output-context
expression
variable
Guidelines
An extract action applies an XPath expression to a context and stores the result in
another context.
In the absence of variable argument, the results of the XPath expression are stored
as the default contents (tree) of the destination context.
Examples
v Applies the //games/url XPath expression to the INPUT context and stores the
v Applies the //games/url XPath expression to the INPUT context and stores the
v Applies the XPath expression referenced by the local xpath variable and stores
v Same as the previous example, but note the use of an explicit address for the

fetch

Adds a fetch action.
Syntax
fetch url output-context
870
Command Reference
Specifies the context to which to apply the XPath expression. Specify INPUT
to use the initial policy input, which is the original client request or server
response.
Specifies the context that stores the result of the XPath expression. Specify
OUTPUT to use the final policy output, which is the transformed client
request or transformed server response
Specifies the XPath expression that is applied and can be expressed in
standard XPath format or as a var:// URL that expands to an XPath
expression.
Optionally specifies a variable, within the output context, in which to store
the result of the XPath expression.
result in the three context.
# extract INPUT three //games/url
#
result in the url variable within the three context.
# extract INPUT three //games/url var://local/url
#
the result in the url variable within the three context.
# extract INPUT three var://local/xpath var://local/url
#
optional variable argument.
# extract INPUT three var://local/xpath var://three/url
#

Advertisement

Table of Contents
loading

Table of Contents