Examples of parameter values

Previous Next

Suppose a client application requests all scheduled tours to Brazil or Canada departing after January 23, 2006. The SOAP request message is:

<soap:Envelope>

    <soap:Header/>

    <soap:Body>

        <GetTours>

            <AfterDate>2006-01-23</AfterDate>

            <Destinations>

                <Destination1>BRAZIL</Destination1>

                <Destination2>CANADA</Destination2>

            </Destinations>

        </GetTours>

    </soap:Body>

</soap:Envelope>

For this SOAP request message:

The GetTours method name is automatically interpreted.

The AfterDate input parameter is automatically interpreted. The SQL Statement of the GetTours method gets 2006-01-23 as value for the first input parameter.

The SQL Statement of the GetTours method gets as value for the second input parameter this string:

<Destinations>

  <Destination1>BRAZIL</Destination1>

  <Destination2>CANADA</Destination2>

</Destinations>

 

 

The response SOAP message of the Web service provider is:

<soap:Envelope>

    <soap:Header/>

    <soap:Body>

    <GetToursResponse>

        <Count>1</Count>

        <Tours>

            <Tour>

                <Schedtour_ID>27</Schedtour_ID>

                <Destination>CANADA</Destination>

                <StartDate>2006-02-02</StartDate>

                <ReturnDate>2006-02-23</ReturnDate>

            </Tour>

        </Tours>

    </GetToursResponse>

    </soap:Body>

</soap:Envelope>

 

 

For this SOAP response message:

The GetToursResponse method name is automatically generated.

The Count output parameter is automatically generated. The SQL Statement of the GetToursResponse method selects 1 as value for the Count output parameter.

The SQL Statement of the GetToursResponse method selects as value for the second output parameter this string:

<Tours>

    <Tour>

        <Schedtour_ID>27</Schedtour_ID>

        <Destination>CANADA</Destination>

        <StartDate>2006-02-02</StartDate>

        <ReturnDate>2006-02-23</ReturnDate>

    </Tour>

</Tours>