|
Home >Online Product Documentation >Table of Contents >Creating a ddtek:wscall Function Creating a ddtek:wscall Function
There are two ways to create a Use this method when you have created a Web service call using the Stylus Studio Web Service Call Composer. See , , on page 901 for more information on this topic.
Use this method when you want to use Web service operations that have not been exposed using a Stylus Studio Web service call. To create a ddtek:wscall function automatically:
1. Open an XQuery and click the Mapper tab.
2. Open the Stylus Studio File Explorer or some other tool that allows you to navigate a file system.
3. Locate the Web service call ( .wscc file) for the Web service whose operations you want to include in your XQuery code.
4. Drag the .wscc file and drop it on the XQuery Mapper canvas.
Stylus Studio adds the
If the Web service exposes multiple operations, the
1. Double-click the ddtek:wscall function glyph.
The Choose the WSDL Operation dialog box (see Figure 378) appears.
2. Click the down arrow in the Operation Name field to display the available Web service operations, as shown here:
3. Select the operation you want and click OK.
To create a ddtek:wscall function manually:
1. Open an XQuery and click the Mapper tab.
2. Right-click the Mapper canvas and select Function Block > DataDirect XQuery > wscall/2.
Stylus Studio displays the Choose the WSDL Operation dialog box.
3. Enter the URL of the WSDL whose operation you want your XQuery to execute in the WSDL File field.
Example:
Stylus Studio displays the operations associated with the Web service represented by the WSDL in the Operation Name field.
4. Choose the Web service operation you want your XQuery to execute from the Operation Name field.
Example:
5. Click OK.
Stylus Studio displays the
The illustration shown in Figure 379 shows a |