Destination
Destination
List of system destinations
HTTP Request
| Node | Attribute | Data Type | Description | Value | Mandatory |
|---|---|---|---|---|---|
| objRequest | PrimaryLang | String | LangID returned in the StaticDataResponseV2Language method | Optional | |
| objRequest/StaticMasterData | | String | Static data type | DESTINATION | Required |
| StaticMasterDataFilters/CountryCode | | Integer | Code of the requested country | Optional |
HTTP Response
| Node | Attribute | Data Type | Description | Value | Mandatory |
|---|---|---|---|---|---|
| Destinations | Array | Array of destinations | Required | ||
| StaticDataResponseV2Destination | Content of destination data | Required | |||
| CountryCode | Integer | Country code | Required | ||
| CountryName | String | Country name | Required | ||
| DestinationCode | Integer | Destination code | Required | ||
| Destination | String | Destination name | Required | ||
| Latitude | String | Latitude coordinates | {Number},{Number} | Required | |
| Longitude | String | Longitude coordinates | {Number},{Number} | Required |
XML Examples
Static data destinations REQUEST example
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://xml.ineedtours.com/ws/">
<soapenv:Header/>
<soapenv:Body>
<ws:DestServicesStaticDataV2>
<ws:objCredentials>
<ws:Source>
<ws:RequestorID Type="DSP" ID="YOUR-USER" MessagePassword="YOUR-PASSWORD"/>
</ws:Source>
</ws:objCredentials>
<ws:objRequest>
<ws:StaticMasterData>DESTINATION</ws:StaticMasterData>
<ws:StaticMasterDataFilters>
<ws:CountryCode>197</ws:CountryCode>
</ws:StaticMasterDataFilters>
</ws:objRequest>
</ws:DestServicesStaticDataV2>
</soapenv:Body>
</soapenv:Envelope>
Static data destinations RESPONSE example
<?xml version="1.0" encoding="UTF-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<DestServicesStaticDataV2Response xmlns="http://xml.ineedtours.com/ws/">
<DestServicesStaticDataV2Result>
<Header ResponseTimestamp="2019-01-10T12:32:29.3360209+01:00" MillisecondProcessingTime="158" Endpoint="demo.xml.com"/>
<Destinations>
<StaticDataResponseV2Destination>
<CountryCode>5</CountryCode>
<CountryName>Andorra</CountryName>
<DestinationCode>11492</DestinationCode>
<Destination>Incles</Destination>
<Latitude>42,583</Latitude>
<Longitude>1,66336</Longitude>
</StaticDataResponseV2Destination>
<StaticDataResponseV2Destination>
<CountryCode>5</CountryCode>
<CountryName>Andorra</CountryName>
<DestinationCode>11493</DestinationCode>
<Destination>Escaldes-Engordany</Destination>
<Latitude>42,508889</Latitude>
<Longitude>1,540833</Longitude>
</StaticDataResponseV2Destination>
<StaticDataResponseV2Destination>
<CountryCode>5</CountryCode>
<CountryName>Andorra</CountryName>
<DestinationCode>11494</DestinationCode>
<Destination>Bordes d´Envalira</Destination>
<Latitude>42,5598</Latitude>
<Longitude>1,68536</Longitude>
</StaticDataResponseV2Destination>
<StaticDataResponseV2Destination>
<CountryCode>5</CountryCode>
<CountryName>Andorra</CountryName>
<DestinationCode>11495</DestinationCode>
<Destination>Arinsal</Destination>
<Latitude>42,5667</Latitude>
<Longitude>1,48333</Longitude>
</StaticDataResponseV2Destination>
<StaticDataResponseV2Destination>
<CountryCode>5</CountryCode>
<CountryName>Andorra</CountryName>
<DestinationCode>11496</DestinationCode>
<Destination>Arans</Destination>
<Latitude/>
<Longitude/>
</StaticDataResponseV2Destination>
</Destinations>
</DestServicesStaticDataV2Result>
</DestServicesStaticDataV2Response>
</soap:Body>
</soap:Envelope>