Documentation of the CarRentalAgentService

CarRentalAgentService. Method 

Retrieves the set of supported Languages.

public LanguagesResponse (
   LanguagesRequest request
);

Parameters

LanguagesRequest
A LanguagesRequest containing the nessessary request data.

Return Value

A LanguagesResponse containing the requested Languages.

Remarks

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".

List of actually supported Languages Including ISO 639 Codes

ISO 639 language codes:

ISO 639 Code Language
EN English

This is the default language of CarRentalAgentService.

DE German
FR French
NL Dutch

List Of defined call-variants

parameters GetLanguagesP1
token required


Description : This variant returns all languages available at CarRentalAgentService.

List Of Errors Returned

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:

  • The token is in invalid format.
  • The token is expired.
  • The token was not found.

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

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);
}

See Also

CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace