Databases Reference
In-Depth Information
Functions : This shows you all the different types of XPath functions that are
available to build up your XPath expression. To make it easier to locate the
required function, they are grouped into categories such as String Functions ,
Mathematical Functions , and so on.
The drop-down list lets you select the category that you are interested
in (for example, Mathematical Functions , as illustrated in the preceding
screenshot), and then the window below that lists all the functions available
to that group.
To use a particular function, select the required function, and click Insert Into
Expression . This will insert the appropriate XPath fragment into the XPath
Expression (again at the point that the cursor is currently positioned).
Content Preview : This box displays a preview of the content that would be
inserted into the XPath Expression if you clicked the Insert Into Expression
button. For example, if you had currently selected a particular BPEL variable,
it would show you the XPath to access that variable.
Description : If you've currently selected a function, this box provides a
brief description of the function, as well as the expected usage and
number of parameters.
So let's use this to build our XPath expression. The expression we want to build is
a relatively simple one, namely, the stock price returned by the stock quote service
multiplied by the exchange rate returned by the exchange rate service.
To build our XPath expression, carry out the following steps:
First, within the BPEL Variables area, in the variable QuoteOutput , locate the
element ns1:GetSingleQuoteResult|ns1:Last , as shown in the following screenshot:
 
Search WWH ::




Custom Search