Default Keyword; Xml Pattern Matching - HP P4518A - Traffic Management Server Sa7150 User Manual

Hp e-commerce/xml server accelerator sa7150 - user guide
Hide thumbs Also See for P4518A - Traffic Management Server Sa7150:
Table of Contents

Advertisement

C H A P T E R 3
NOTE: Multiple XML
patterns can use the
default keyword, but they
must have different URI
expressions.
XML Operations

Default Keyword

The keyword default can be used as an XML pattern's XML
expression component to catch cases not covered by active XML
patterns with specific XML expressions. To illustrate, imagine you
have a number of active XML patterns assigned to different servers,
each with the same URI expression (orders.asp) but with different
XML expressions.
orders.asp & //company[name="GM"]
orders.asp & //company[name="Ford"]
orders.asp & //company[name="Chrysler"]
orders.asp & default
For example, incoming XML messages aimed at the URI
"orders.asp" and containing the company names "Chevrolet,"
"BMW," or "Honda" would not result in exact matches with any of
the first three XML patterns in the example above. However the XML
pattern containing default would catch all of these messages, because
the URI expression is an exact match and default in the XML
expression doesn't match "GM," "Ford," or "Chrysler."
Below is an example of the CLI input to create an XML pattern
containing the default keyword.
HP SA7150> create pattern gold
URI Expression: orders.asp
XML Expression: default
Enter another pattern? [n]:
HP SA7150>

XML Pattern Matching

The SA7150 looks first for URI expression matches. If matches for
URI expression are found, then the SA7150 looks for XML
expression matches.
If both the URI and XML expressions match, the SA7150 sends
the message to the server to which the matching XML pattern is
assigned.
If only the URI expression matches, the SA7150 sends the
message to the default XML server, if one is specified, or if not,
to the mapped server.
If the URI expression does not match, the XML expression is
ignored and the message goes to the mapped server.
29

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sa7150

Table of Contents