Retrieves a TicketGrantingTicket used to obtain a service Ticket.
A TicketGrantingTicketResponse containing the TicketGrantingTicket with token and secret.
In detail: Before you can use any other functionality of this service, you'll have to authenticate against the service. This is achieved by following the steps of the authentication procedure described in the CarRentalAgentService SDK - Reference Manual. This method is the first step of the authentication procedure.
In return, you'll get a TicketGrantingTicket, which will contain a token and a secret you need to complete the subsequent steps of the authentication procedure.
NoteThe returned TicketGrantingTicket will have a very short time of validity (usually 60 seconds). You must complete the complete authentication procedure within this time period. If you fail to complete the procedure in given time, the complete procedure will fail - even if the given data is valid. You then will have to start the authentication procedure again by calling this method.
Error Code | Description |
---|---|
E_INTERNAL_SERVICE | An internal service error occured during the process. |
E_OPERATOR_KEY_INVALID | The provided operator key is invalid. This error occurs if:
|
E_REQUEST_INVALID | The performed request is invalid or malformed. |
Obtaining a ticket granting ticket.
[C#]
TicketGrantingRequest rq = new TicketGrantingRequest();
rq.OperatorKey = "000000";
TicketGrantingResponse rs = this.carAgent.GetTicketGrantingTicket(rq);
TicketGrantingTicket grant = rs.TicketGrantingTicket;
CarRentalAgentService Class | SunnyCars.Services.Osi.WsReservation Namespace