Donate. I desperately need donations to survive due to my health

Get paid by answering surveys Click here

Click here to donate

Remote/Work from Home jobs

Generate shipping label using Shipping UPS

We need to generate shipping labels using PHP. We need to generate for the list of products available in our Dolibarr source (https://www.dolibarr.org/) using https://www.ups.com. I downloaded developer kit from ups.com. I am using the code available in SoapLabelRecoveryClient. While using this I am getting below error

Request....... Array ( [Request] => Array ( [TransactionReference] => Array ( [CustomerContext] => Add description here ) ) [TrackingNumber] => 1ZAA75229092095917 ) SoapFault Object ( [message:protected] => Function ("ProcessShipLabelRecovery") is not a valid method for this service [string:Exception:private] => [code:protected] => 0 [file:protected] => C:\xampp\htdocs\erpdemo.smbapplication.com\shipping-api\SoapLabelRecoveryClient.php [line:protected] => 53 [trace:Exception:private] => Array ( [0] => Array ( [file] => C:\xampp\htdocs\erpdemo.smbapplication.com\shipping-api\SoapLabelRecoveryClient.php [line] => 53 [function] => __soapCall [class] => SoapClient [type] => -> [args] => Array ( [0] => ProcessShipLabelRecovery [1] => Array ( [0] => Array ( [Request] => Array ( [TransactionReference] => Array ( [CustomerContext] => Add description here ) ) [TrackingNumber] => 1ZAA75229092095917 ) ) ) ) ) [previous:Exception:private] => [faultstring] => Function ("ProcessShipLabelRecovery") is not a valid method for this service [faultcode] => Client [faultcodens] => http://schemas.xmlsoap.org/soap/envelope/ )

Could you please suggest on the below

  1. Can we generate sandbox access key
  2. For generating shipping label can we use SoapLabelRecoveryClient.php

Thanks

Comments