我正在使用UPS快递服务来递送包裹。在我的网站中,我需要使用跟踪号显示特定订单的交付状态,我使用以下示例, https://github.com/chetan/php-ups-api
我在配置文件中添加了访问密钥,用户名和密码。我正在使用此库的tracking.php文件进行测试。但我收到以下错误,
Fatal error: require_once(): Failed opening required 'XML/Unserializer.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/project/php-ups-api-master/UpsAPI/Client.php on line 119
任何人都可以告诉我在哪里可以获得此文件。
我也尝试过使用 https://www.ups.com/upsdeveloperkit/downloadresource?loc=en_US
\ project \ TrackingPACKAGE \ _TRACKINGWebServices \ CodeSamples \ Track \ PHP \ SoapTrackClient.php file
我添加了, $ wsdl =“../../../SCHEMAS-WSDLs/Track.wsdl”; 作为参数。
但是得到以下错误,
SoapFault对象([message:protected] =>由于客户端数据而引发了异常。[string:Exception:private] => [code:protected] => 0 [file:protected] => /home/project/TrackingPACKAGE/TRACKINGWebServices/CodeSamples/Track/PHP/SoapTrackClient.php [line:protected] => 62 [trace:Exception:private] => Array([0] => Array( [file] => /home/project/TrackingPACKAGE/TRACKINGWebServices/CodeSamples/Track/PHP/SoapTrackClient.php [line] => 62 [function] => __soapCall [class] => SoapClient [type] =&gt ; - > [args] =>数组([0] => ProcessTrack [1] =>数组([0] =>))))[上一篇:异常:私有] => [faultstring] =>由于客户端数据引发了异常。[faultcode] =>客户端[faultcodens] => http://schemas.xmlsoap.org/soap/envelope/ [detail] => stdClass对象([错误] => stdClass对象([ErrorDetail] => stdClass对象([严重性] =>认证[PrimaryErrorCode] => stdClass对象([代码] => 250002 [德划线] =>无效的身份验证信息。 ))))[xdebug_message] => (!)SoapFault:由于客户端数据而引发了异常。在/home/project/TrackingPACKAGE/TRACKINGWebServices/CodeSamples/Track/PHP/SoapTrackClient.php第62行调用堆栈#TimeMemoryFunctionLocation 10.0006132036 {main}()../ SoapTrackClient.php:0 20.0079240060SoapClient-> __ soapCall().. /SoapTrackClient.php:62)
请帮帮我。