Decode Sample (English)
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 Spanish.
Note: Category names (such as CarType) and attributes (such as Code) are case sensitive.
Request
For an unnannotated version of the request, see Unnannotated Decode Sample.
Explanation |
Code |
Begins the Travel Codes Translator eBL request. As no language is specified, the response defaults to English (US). |
<Decode xmlns="http://webservices.galileo.com/TravelCodesTranslator/"> <DecodeInput>
|
Specifies the category and the code within the category to be translated. Where a CoreSystem Code attribute is listed, "1V" is Apollo and "1G" is Galileo. |
|
Ends the Travel Codes Translator eBL request. |
</DecodeInput> </Decode> |
Response
Explanation |
Code |
Begins the Travel Codes Translator eBL response. |
<DecodeResponse xmlns="http://webservices.galileo.com/TravelCodesTranslator/"> <DecodeResult>
|
Lists the translation for each code listed in the request. Where a CoreSystem Code attribute is listed, "1V" is Apollo and "1G" is Galileo. |
|
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>
|
Ends the Travel Codes Translator eBL response. |
</DecodeResult> </DecodeResponse> |