public void CallGetDeliveryDetails()
        {
            TrackingProxy.TrackingService service = CreateTrackingService();

            TrackingProxy.GetDeliveryDetailsRequestContainer request = new GetDeliveryDetailsRequestContainer();
            TrackingProxy.GetDeliveryDetailsResponseContainer response = new GetDeliveryDetailsResponseContainer();

            // Setup the request to perform a tracking on a shipment
            request.PIN = new TrackingProxy.PIN();
            request.PIN.Value = "JFV242486848";

            try
            {
                // Call the service
                response = service.GetDeliveryDetails(request);

                // Display the response
                Display(response.ResponseInformation);
                Display(response.DeliveryDetails);
            }
            catch (Exception ex)
            {
                Console.WriteLine(" EXCEPTION: {0}", ex.Message);
            }
        }
Beispiel #2
0
 /// <remarks/>
 public void GetDeliveryDetailsAsync(GetDeliveryDetailsRequestContainer GetDeliveryDetailsRequest, object userState) {
     if ((this.GetDeliveryDetailsOperationCompleted == null)) {
         this.GetDeliveryDetailsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDeliveryDetailsOperationCompleted);
     }
     this.InvokeAsync("GetDeliveryDetails", new object[] {
                 GetDeliveryDetailsRequest}, this.GetDeliveryDetailsOperationCompleted, userState);
 }
Beispiel #3
0
 /// <remarks/>
 public void GetDeliveryDetailsAsync(GetDeliveryDetailsRequestContainer GetDeliveryDetailsRequest) {
     this.GetDeliveryDetailsAsync(GetDeliveryDetailsRequest, null);
 }