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