I am new to webservice and UPS. I have tried the sample URL's that UPS have given for testing in PHP codes and it works just perfect for me.
But when i try to hit the same URL's in Ensemble. it gives some errors from UPS.
If anyone of you guys here has any knowledge about UPS integration or the webservice please help me. it will be much appreciated and helpful.
The ensemble code that i am trying with is,
set AuthToken=##class(%Net.HttpRequest).%New() set AuthToken.SSLConfiguration="UPS" set AuthToken.Https=1 set AuthToken.Server="wwwcie.ups.com" Set AuthToken.Timeout=10 Do AuthToken.SetHeader("UPSSecurity","http://www.ups.com/XMLSchema/XOLTWS/UPSS/v1.0") Do AuthToken.InsertFormData("AccessLicenseNumber","***************") Do AuthToken.InsertFormData("Username","XXXXXXXXXXXX") Do AuthToken.InsertFormData("Password","YYYYYYYYYYYYY") Do AuthToken.SetParam("soap_method","ProcessVoid") Do AuthToken.SetParam("CustomerContext","Add your description here") Do AuthToken.SetParam("ShipmentIdentificationNumber","1ZISDE016691676846") set tSc = AuthToken.Post("/webservices/Void") Set AuthTokenValue=AuthToken.HttpResponse.Data.Read() Write AuthTokenValue,! Quit