Web service example 6: RPC-oriented method with complex type SOAP array 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 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


Continue with

Web service example 6: Step-by-step instructions

See also

Web service example 6: Transforming attributes to dhild elements

Web service example 6: XML schema definition for scheduled tours