XML Request

Many of the XML Select Web Service methods take an XML request.  The XML request defines the type of information that you want from the host (e.g., air availability, hotel descriptions, or car rental properties). Structure an XML request using the transaction definitions.

Some requests allow you to filter your response so that you only receive the information in which you are interested.

The XML that defines the request and filter should not include an XML processing instruction (e.g., <?xml version="1.0" encoding="utf-8"?>).

Sample XML Request

The following XML sample requests hotel availability in Chicago for December 1 - December 10, 2002 for two people. For more information on the structure of the XML, see the Hotel Availability transaction.

For a sample of this availability using filters, refer to Sample Filters.

<HotelAvailability_8_0>

    <HotelAvailabilityMods>

        <ReqType>C</ReqType>

        <StartDt>20001201</StartDt>

        <EndDt>20001210</EndDt>

        <NumNights>09</NumNights>

        <NumPersons>2</NumPersons>

        <City>CHI  </City>

        <RefPt></RefPt>

        <PropNum1>00000</PropNum1>

        <PropNum2>00000</PropNum2>

        <PropNum3>00000</PropNum3>

        <PropNum4>00000</PropNum4>

        <DesiredAltCurrency></DesiredAltCurrency>

        <NoRelaxInd>Y</NoRelaxInd>

        <MoreInd>N</MoreInd>

        <MoreIndYNQual>

            <SlotAry>

                <Slot>

                    <ID>D </ID>

                    <Priority>01</Priority>

                    <Data><![CDATA[005M  Y000]]></Data>

                </Slot>

                <Slot>

                    <ID>C </ID>

                    <Priority>02</Priority>

                    <Data>R</Data>

                </Slot>

            </SlotAry>

        </MoreIndYNQual>

    </HotelAvailabilityMods>

</HotelAvailability_8_0>