Decode Sample (Spanish)

The following XML sample illustrates some of the categories that can be decoded by the Travel Codes Translator eBL. There is also a sample in English.

Request

Explanation

Code

Begins the Travel Codes Translator eBL request.

Also specifies the desired language of the response. If no language is specified, the response defaults to US English.

<Decode xmlns="http://webservices.galileo.com/TravelCodesTranslator/">

<DecodeInput>

  <Decode language="es">

Specifies the category and the code within the category to be translated.

    <AirlineSeatingClass Code="c"/>

    <SeatingPreference Code="w"/>

    <AircraftType Code="m95"/>

    <Airline Code="dl"/>

    <Airport Code="dfw"/>

    <CarVendor Code="ze"/>

    <CarAdditionalEquipment Code="cbr"/>

    <CarType Code="ej"/>

    <CarLocation Code="t"/>

    <CarRateCategory Code="v"/>

    <CarRateType Code="h"/>

    <CreditCardIssuer Code="tl"/>

    <City Code="aus"/>

    <Country Code="mn"/>

    <InFlightService Code="03"/>

    <HotelFacilities Code="57"/>

    <HotelLocation Code="16"/>

    <HotelRate Code="s"/>

    <HotelRoomType Code="akt"/>

    <HotelType Code="01"/>

    <MetropolitanArea Code="mil"/>

    <HotelChain Code="dt"/>

    <MealService Code="s"/>

    <Cuisine Code="lcml"/>

    <PassengerType Code="gov"/>

    <PassengerTitle Code="dr"/>

    <SegmentStatus Code="hl"/>

    <PassengerServiceRequest Code="wchc" CoreSystemCode="1V"/>

    <CabinClass AirlineCode="ba" Code="b"/>

    <StateProvince Code="co"/>

    <CityAirport CityCode="nyc"/>

Ends the Travel Codes Translator eBL request.

  </Decode>

</DecodeInput>

</Decode>

Response

Explanation

Code

Begins the Travel Codes Translator eBL response.

<DecodeResponse xmlns="http://webservices.galileo.com/TravelCodesTranslator/">

<DecodeResult>

  <Decode Version="1.0.200303281403" xmlns="http://ns.galileo.com">

Spanish was requested in the response. However, only categories that have translations in Spanish display in Spanish. If no translation for the desired language is present, the response displays in US English.

Lists the translation for each code listed in the request.

    <AirlineSeatingClass Code="c">Business</AirlineSeatingClass>

    <SeatingPreference Code="w">Window</SeatingPreference>

    <AircraftType Code="m95">Douglas MD-95</AircraftType>

    <Airline Code="dl">Delta</Airline>

    <Airport AirportType="2" CityCode="dfw" CityName="Dallas" Code="dfw" CountryCode="US" StateProvCode="TX">Dallas Ft Worth Intl</Airport>

    <CarVendor Code="ze">Hertz</CarVendor>

    <CarAdditionalEquipment Code="cbr">Citizen Band Radio</CarAdditionalEquipment>

    <CarType Code="ej">Economy All terrain</CarType>

    <CarLocation Code="t">Airport Terminal</CarLocation>

    <CarRateCategory Code="v">Convention Rate</CarRateCategory>

    <CarRateType Code="h">Hourly rate</CarRateType>

    <CreditCardIssuer Code="tl">Forte Travelodge Business Account Card</CreditCardIssuer>

    <City Code="aus" CountryCode="US" StateProvinceCode="TX">Austin</City>

    <Country Code="mn">Mongolia</Country>

    <InFlightService Code="03">Telex</InFlightService>

    <HotelFacilities Code="57">Secretarial Service</HotelFacilities>

    <HotelLocation Code="16">Beach</HotelLocation>

    <HotelRate Code="s">Senior Citizen</HotelRate>

    <HotelRoomType Code="akt">Deluxe Kitchenette</HotelRoomType>

    <HotelType Code="01">Hotel</HotelType>

    <MetropolitanArea Code="mil">Milan Airports</MetropolitanArea>

    <HotelChain Code="dt">Doubletree</HotelChain>

    <MealService Code="s">Snack</MealService>

    <Cuisine Code="lcml">Low Calorie</Cuisine>

    <PassengerType Code="gov">Government</PassengerType>

    <PassengerTitle Code="dr">Dr</PassengerTitle>

    <SegmentStatus Code="hl">Waitlisted</SegmentStatus>

    <PassengerServiceRequest CategoryTypeCode="w" CoreSystemCode="1V" DisplayOptionIndicator="Y" SSRCode="wchc" TextOptionCode="0">Wheelchair - Psgr Completely Immobile</PassengerServiceRequest>

    <CabinClass AirlineCode="ba" Code="b">World Traveller          </CabinClass>

    <StateProvinceCode="CO" CountryCode="US">Colorado
</StateProvince>

CityAirport responses return all airports within a specified metropolitan area, in this example, New York City "nyc".

<CityAirport AirportCode="TSS" AirportType="8" CityCode="NYC" CityName="New York" CountryCode="US" StateProvinceCode="NY">East 34th St Hlpt</CityAirport>

    <CityAirport AirportCode="NYP" AirportType="6" CityCode="NYC" CityName="New York" CountryCode="US" StateProvinceCode="NY">New York Pennsylvania Station</CityAirport>

    <CityAirport AirportCode="LGA" AirportType="2" CityCode="NYC" CityName="New York" CountryCode="US" StateProvinceCode="NY">La Guardia</CityAirport>

    <CityAirport AirportCode="JFK" AirportType="2" CityCode="NYC" CityName="New York" CountryCode="US" StateProvinceCode="NY">John F Kennedy Intl</CityAirport>

    <CityAirport AirportCode="JRE" AirportType="8" CityCode="NYC" CityName="New York" CountryCode="US" StateProvinceCode="NY">East 60th St Hlpt</CityAirport>

Ends the Travel Codes Translator eBL response.

  </Decode>

</DecodeResult>

</DecodeResponse>