Invoking Multiple SOAP Requests

You can invoke multiple SOAP requests in the same XQuery. These SOAP requests can be from the same Web service, or from different Web services if they use the same parameters.

Rules

When invoking multiple SOAP requests in the same XQuery, bear in mind the following rules:

  • The XQuery must contain only one instance of the header that declares the namespace used by the Web service. For example:

declare namespace tns = "http://swanandmokashi.com";
               

            

  • Separate each ddtek:wscall() function with a comma, to create a sequence.

How to Invoke Multiple SOAP Requests in the Same XQuery

To invoke multiple SOAP requests in the same XQuery:
1. Make sure you understand the rules for including multiple SOAP requests in the same XQuery code as described in the previous section, Rules.
2. Create the Web service call, and use Web Service Call > Copy XQuery Call to Clipboard to create XQuery code for the SOAP request as described in Creating XQuery from a Web Service Call.

The XQuery code created by Stylus Studio is copied to your system's clipboard.

3. Create a new XQuery, and paste the contents of your system clipboard into it.
4. Type a comma at the end of the ddtek:wscall() function.
5. Repeat step 2 for the next Web service SOAP request you want to invoke from your XQuery.
6. Paste the new XQuery code into the XQuery you created in step 3. Before pasting, place the text cursor after the comma you typed in step 4.
7. From the XQuery code you just pasted, delete the namespace declaration that precedes the ddtek:wscall() function.

ADO to XML

The Stylus Studio ADO to XML data coversion wizard simplifies extracting of relational data into any XML format.

XQuery Functions - User Defined Functions in XQuery

Dr. Michael Kay's tutorial entitled: 'Defining your own Functions in XQuery' explains how to write powerful User Defined Functions in XQuery.

Flat File to XML Mapper

Convert any flat file to XML in 3 clicks or less using the Stylus Studio Flat File to XML Mapper. Supports tons of different file encodings: UTF-8, UTF-16, US-ASCII, ISO-8859-1, and more.

XML Syntax Help - Intelligent XML Editing

Stylus Studio's XML Editors feature Intelligent XML Schema/DTD-Aware Code Sensing and context sensitive XML code auto-completion. Simplify XML editing with Stylus Studio today.

Stylus Most Wanted

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.