SOAP 调用有关问题
程序员文章站
2022-05-09 21:54:03
...
SOAP 调用问题
为什么为出错啊,出错如下:
Fatal error: Uncaught SoapFault exception: [soap:Server] System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at WebServiceCN.OrderService.CancelAPACShippingPackage(CancelAPACShippingPackageRequest CancelAPACShippingPackageRequest)
------解决方案--------------------
- PHP code
$soapclient = new soapclient("http://shippingapi.ebay.cn/production/v2/orderservice.asmx?wsdl"); $params = array( 'Version' => "2.0.0", 'APIDevUserID' => "sureelectronics", 'APIPassword' => "7114209N1OCBA61N83CRA0PY1F743DSGTM7GEAY581CND3BHG0POUW20111540", 'APISellerUserID' => "sureelectronics", 'MessageID' => "125625622452", 'TrackCode' => "LK042013892CN" ); $functions = $soapclient->CancelAPACShippingPackage($params); print_r($functions);2.0.0 **** ******** ******* 1234 LK*********CN
为什么为出错啊,出错如下:
Fatal error: Uncaught SoapFault exception: [soap:Server] System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at WebServiceCN.OrderService.CancelAPACShippingPackage(CancelAPACShippingPackageRequest CancelAPACShippingPackageRequest)
------解决方案--------------------
- PHP code
$soapclient = new soapclient("http://shippingapi.ebay.cn/production/v2/orderservice.asmx?wsdl"); $params = array( 'Version' => "2.0.0", 'APIDevUserID' => "sureelectronics", 'APIPassword' => "7114209N1OCBA61N83CRA0PY1F743DSGTM7GEAY581CND3BHG0POUW20111540", 'APISellerUserID' => "sureelectronics", 'MessageID' => "125625622452", 'TrackCode' => "LK042013892CN" ); $functions = $soapclient->CancelAPACShippingPackage(array("CancelAPACShippingPackageRequest"=>$params)); print_r( $functions);相关文章
相关视频
上一篇: js 模拟气泡屏保效果代码_其他特效
下一篇: php实现无刷新上传文件功能详解