Web Service Example 5: Document-Oriented Method with Complex Type Parameters

Previous Next

First complete Web Service Example 1: RPC-Oriented Method with Simple Type Parameters. This example is an add-on.

In this example, you extend the TRAVELSERVICE web service provider with a document-oriented GetScheduledTours method that retrieves Scheduled Tour details for a specified destination. There can be more than one scheduled tour with a certain destination. Therefore, the Out parameter must be a complex type parameter, based on an XML schema definition, and a namespace.

For a document-oriented method, the body of the SOAP request message must contain one or more XML documents. The INVOKE statement, issued by the client application reads:

INVOKE    TRAVELCOMPONENT.GETSCHEDULEDTOURS

WITH

SELECT    '<destination>AUSTRALIA</destination>'

 

Continue with: Web Service Example 5: Step-by-Step Instructions.

See Also

Web Service Example 5: XML Schema Definition for Scheduled Tours

Web Service Example 5: SOAP request and response messages