|
|
Home > Online Product Documentation > Table of Contents > Saving a Web Service Call Saving a Web Service CallYou can save the Web service call composed by Stylus Studio. The file created when you save a Web service call includes the WSDL URL and the last Web service operation that you configured (including parameter values) prior to saving the file. For example, if you are using a Web service that provides separate operations for temperature conversions (one for Celsius to Fahrenheit and one for Fahrenheit to Celsius, for example), only the last one you test is saved. Saving a Web service call gives you the ability to easily recall a preconfigured SOAP request for additional testing - allowing you to modify the SOAP request and test it without having to locate the WSDL. Using Web Service Calls as XMLIn addition to opening a Web service call in the Web Service Call Composer for testing purposes, you can open a Web service call as an XML document anywhere in Stylus Studio - in the XML editor, or as a source document in the XQuery mapper for example. When you open a Web service call as an XML document, Stylus Studio automatically executes the SOAP request and displays the SOAP response.
Consider the following Web service call,
And here is the SOAP response returned by the Web service:
The saved Web service call can be used as the source document for an XQuery in the XQuery mapper, as shown in Figure 305:
XQueries composed using a Web service call as a source document return real-time data from the Web service as a result. Where Web Service Calls are Saved
Stylus Studio saves Web service calls to the Web Services file system. By default, Web service calls are saved with a
How to Save a Web Service CallTo save a Web service call:
1. Select
File > Save from the Stylus Studio menu bar.
The first time you save a Web service call, the Save As dialog box appears; for subsequent save operations, Stylus Studio displays the Save dialog box.
2. Change the default name (
Untitled.wscc, for example), and click
Save.
|

Cart


