Documentation of the CarRentalAgentService

Operation.Target Property

Gets or sets the operational target of service.

public  Target {get; set;}

Remarks

The CarRentalAgentService interface supports transport of operational meta-data for each Request. Using this class, you can change the target of operation, whereby you have the choice between Production and Test.

This way, you can ensure that you call the correct service implementation. That means actually which database is used to handle the Request.

Example

If you want to have a CarRentalAgentService method operate on testing environment, because you are about to implement a client, you can easily set the Target attribute of the Operation instance to inform the service provider about your intent.

[C#]
RegionsRequest rq = new RegionsRequest();
rq.Operation.Target = OperationTarget.Test;
rq.Ticket = this.serviceTicket;

RegionsResponse rs = this.service.GetRegions(rq);

See Also

Operation Class | SunnyCars.Schema.Osi.WsReservation.V4 Namespace | OperationTarget