Home > Backend Development > PHP Tutorial > 求问调用顺丰webservice的问题

求问调用顺丰webservice的问题

WBOY
Release: 2016-06-23 13:52:50
Original
1205 people have browsed it

测试环境服务地址:
http://bsp-test.sf-express.com:9090/bsp-ois/ws/expressService?wsdl

路由查询报文Demo:
   
 1111,11111111111 



 1、 调用方法
sfexpressService (String xml)
2、Tips:开发的时候可以参考附件《路由查询接口开发提示》
3、测试数据(测试时可查询以下数据):
106119552844、113022783994、756313860088
113022783994、966104009662、113022783994

请问我该如何传参
 


回复讨论(解决方案)

有没有文档api,贴上来

请提供可以测试用的用户卡号,校验码,和订单号

已私信发送

  header('content-type:text/html;charset=utf-8;');  $url = 'http://bsp-test.sf-express.com:9090/bsp-ois/ws/expressService?wsdl';  $soap= new SoapClient($url);  //echo '<pre class="brush:php;toolbar:false">';  $xml = ""          ."<Request service='RouteService' lang='zh-CN'>"          ."<Head>1111,11111111111</Head>"          ."<Body>"          ."<RouteRequest tracking_type='1' method_type='1' tracking_number='756313860088'/>"          ."</Body></Request>";  $return = $soap->sfexpressService(array('arg0'=>$xml));  var_dump($return->return);
Copy after login


将其中的卡号和checkword换成你自己的,我这返回8001,IP未授权,你通过授权应该可以

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template