Language
Language
Get a list of the languages of the system. Sample request and response for SOAP
{YOUR.PROVIDER.DOMAIN}/destservices/destservices.asmx?op=DestServicesAvailV2
HTTP Request
| Node | Attribute | Data Type | Description | Value | Mandatory |
|---|---|---|---|---|---|
| objRequest | StaticMasterData | String | Static data type | LANGUAGE | Required |
HTTP Response
| Node | Attribute | Data Type | Description | Value | Mandatory |
|---|---|---|---|---|---|
| Languages | Array | Array of languages | Required | ||
| StaticDataResponseV2Language | Content of language data | Required | |||
| LangID | Integer | Language code | Required | ||
| Name | String | Language name | Required |
XML Examples
Static data languages 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>LANGUAGE</ws:StaticMasterData>
</ws:objRequest>
</ws:DestServicesStaticDataV2>
</soapenv:Body>
</soapenv:Envelope>
Static data languages RESPONSE example
<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-09T16:58:36.8888267+01:00" MillisecondProcessingTime="32" Endpoint="demo.xml.com"/>
<Languages>
<StaticDataResponseV2Language>
<LangID>ES</LangID>
<Name>Español</Name>
</StaticDataResponseV2Language>
<StaticDataResponseV2Language>
<LangID>EN</LangID>
<Name>Ingles</Name>
</StaticDataResponseV2Language>
</Languages>
</DestServicesStaticDataV2Result>
</DestServicesStaticDataV2Response>
</soap:Body>
</soap:Envelope>