示例#1
0
        public void CallTrackPackagesByPin()
        {
            TrackingProxy.TrackingService service = CreateTrackingService();

            TrackingProxy.TrackPackagesByPinRequestContainer request = new TrackPackagesByPinRequestContainer();
            TrackingProxy.TrackPackagesByPinResponseContainer response = new TrackPackagesByPinResponseContainer();

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

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

                // Display the response
                Display(response.ResponseInformation);
                Display(response.TrackingInformationList);
            }
            catch (Exception ex)
            {
                Console.WriteLine(" EXCEPTION: {0}", ex.Message);
            }
        }
示例#2
0
 /// <remarks/>
 public void TrackPackagesByPinAsync(TrackPackagesByPinRequestContainer TrackPackagesByPinRequest, object userState) {
     if ((this.TrackPackagesByPinOperationCompleted == null)) {
         this.TrackPackagesByPinOperationCompleted = new System.Threading.SendOrPostCallback(this.OnTrackPackagesByPinOperationCompleted);
     }
     this.InvokeAsync("TrackPackagesByPin", new object[] {
                 TrackPackagesByPinRequest}, this.TrackPackagesByPinOperationCompleted, userState);
 }
示例#3
0
 /// <remarks/>
 public void TrackPackagesByPinAsync(TrackPackagesByPinRequestContainer TrackPackagesByPinRequest) {
     this.TrackPackagesByPinAsync(TrackPackagesByPinRequest, null);
 }