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: