Call UPS Parcel Tracking Web Service with Delphi? -
Delphi 2009 imported UPS WSDL without any errors, and I managed to launch a web service with my service information and an example parcel. Id. The response from the server is:
& lt; Expansion & gt; & Lt; Err: errors xmlns: err = "http://www.ups.com/XMLSchema/XOLTWS/Error/v1.1" & gt; & Lt; Error: ErrorDetail & gt; & Lt; Fault: Severity & gt; Hard & lt; / Hum: Severity & gt; & Lt; Default: PrimaryErrorCode & gt; & Lt; Mistake: Code & gt; 9150002 & lt; / Num: code & gt; & Lt; Err: Details & gt; Invalid or missing check number - tracking number, shipment identification number, or reference number & lt; / Err: Details & gt; & Lt; / Mo: PrimaryErrorCode & gt; & Lt; / Error: ErrorDetail & gt; & Lt; / H: Errors & gt; & Lt; / Extension & gt;
Has anyone already used the UPS Parcel tracking web service with Delphi Client, and knows what is wrong?
Here is the client code:
var service: TrackPortType; Myriziest: Tracuruast; Security: UPSSecurity; MyResponse: TrackResponse; ReqOpt: Array_Of_string; Service start: = (HTTPRIO1 as TrackPortType); Security: = UPSSecurity.Create; Security. Username: Tokens: = Username Create a token; Security.UsernameToken.Username: = 'username'; Security.UsernameToken.Password: = 'password'; Security.ServiceAccessToken: = ServiceAccessToken.Create; Security.ServiceAccessToken.AccessLicenseNumber: = 'License Number'; MyRequest: = TrackRequest.Create; Setline (rakeopt, 1); Recount [0]: = '0'; MyRequest.Request: = Request.Create; MyRequest.Request.RequestOption: = ReqOpt; MyRequest.TrackingOption: = '02'; MyRequest.InquiryNumber: = '1Z ...'; Try (serve as ISoapHeaders). Send (Security); MyResponse: = Service. Processtrack (MyRequest, zero); Except e: Introduce the Iromatic Sampling Memo 1. Lines Text: = FormatXMDData (e.fault details); End; End;
Resolve it with ().
Delphi to integrate with, I proxied it as an intranet Delphi GUI application can then use a simple HTTP request to ask for tracking status.
UPDATE: In the second attempt to work in Delphi, I hardened the SOAP XML requesting body, and