Web service example 6: RPC-oriented method with complex type SOAP array 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 an RPC-oriented GetScheduledToursArray 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.
The XML schema definition contains an ArrayofTours complex type that uses the SOAP encoding rules for an array. This provides a way to represent multiple elements with child elements.
Furthermore, an XSL transformation is used to transform the result of the XML export method into a document with child elements instead of attributes. For more information about this XSL transformation, refer to: Web service example 6: Transforming attributes to dhild elements