Creating a ddtek:wscall Function

To create a ddtek:wscall function in XQuery Mapper:
1. Open an XQuery document and click the Mapper tab.
2. Right-click the Mapper canvas and select Function Block > DataDirect XQuery > wscall/2.

Note

 

There are two predefied wscall functions - wscall/2 provides location and payload input ports; wscall/3 also provides a header input ports.

Stylus Studio displays the Choose the WSDL Operation dialog box.

Figure 345. 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: http://www.swanandmokashi.com/HomePage/WebServices/StockQuotes.asmx?WSDL

Tip

 

You can use Stylus Studio to help locate WSDL documents. See Obtaining WSDL URLs for more information.

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: GetStockQuotes.

5. Click OK.

Stylus Studio displays the wscall function block on the XQuery Mapper canvas.

Figure 346. wscall Function Block on the XQuery Mapper Canvas

The illustration shown in Figure 346 shows a wscall defined with location and payload input ports.

 
Free Stylus Studio XML Training: