Web Service Example 5: Document-Oriented Method with Complex Type Parameters
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:
Continue with: Web Service Example 5: Step-by-Step Instructions.