Analyzing the Data Source

Begin the process of building the getQuoteClient.aef script by first analyzing the structure of the data the server obtains. To do this, you need to to identify the data you want to extract from the XML file. This is found in the XML data path in the file.

To determine the XML data path in the file, do the following.

Procedure


Step 1

Access the web server XML file that is to supply data for your client script by entering the following URL in your web browser:

http://127.0.0.1:8080/getQuote.xml

In this example, the getQuote.xml file is on the local web server included in the HTTP subsystem on the Cisco Unified CCX Engine.

The getQuote.xml file contains the following:


<STOCKLIST>
<STOCK symbol="ABC" error="0">
<HIGH>58.0625</HIGH>
<PCT_CHANGE>0.67114094</PCT_CHANGE>
<LOW>55.1875</LOW>
<LAST>56.25</LAST>
<CHANGE>0.375</CHANGE>
<VOLUME>31,973,600</VOLUME>
<REC_STATUS>0</REC_STATUS>
<DATE>02/21/2001</DATE>
<TIME>15:52</TIME>
</STOCK>
</STOCKLIST>
Step 2

identify the path in the XML file of the information you want to extract from the file.

In the preceding example, the XML path to the stock quote for the ABC Company is as follows:

"/descendant::STOCKLIST/child::STOCK[attribute::symbol= 'ABC'] /child::LAST" 
Step 3

You will use this XML path to identify the data you want to extract from the XML file.

You are now ready to define the variables you will use to build the getQuoteClient.aef script in the Design pane of the Cisco Unified CCX Editor.