Retrieves the set of supported Languages.
A LanguagesResponse containing the requested Languages.
Use this method to get all languages which are supported by this Web Service. Supported languages are languages available for localization (multi-language support).
For example, a Country is a localizable object, which means that a country can have multiple language representations. When you specify a LanguageCode with value DE, you will get "Germany" as "Deutschland". In contrast, if you specify NL as LanguageCode, you will get "Germany" as "Duitsland".
ISO 639 language codes:
ISO 639 Code | Language |
---|---|
EN | English This is the default language of CarRentalAgentService. |
DE | German |
FR | French |
NL | Dutch |
parameters | GetLanguagesP1 |
---|---|
token | required |
Description : | This variant returns all languages available at CarRentalAgentService. |
Error Code | Description |
---|---|
E_INTERNAL_SERVICE | An internal service error occured during the process. |
E_TICKET_TOKEN_INVALID | The provided token is invalid. This error occurs if:
|
E_LANGUAGE_NOT_FOUND | No languages are currently supported by service. Default language is used. |
E_REQUEST_INVALID | The performed request is invalid or malformed. |
Example: Loading all supported languages.
[C#]
LanguagesRequest rq = new LanguagesRequest();
rq.Ticket = this.serviceTicket;
LanguagesResponse rs = this.service.GetLanguages(rq);
foreach (Language lang in rs.Language)
{
Console.WriteLine("Language {0} supported. Code: {1}, Id: {2}", lang.Name, lang.Code, lang.Id);
}
CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace