登录  /  注册
有大佬知道这种接口文件怎么使用吗?
2020-05-25 09:14:32
[PHP讨论组]

1.接口说明

授权 ID 与授权账号联系宝通达业务获取

请求地址:http://open.btdair.com:8099/LogisticsService.svc?

wsdl 请求方式:POST 

Header 中包含:

Content-Type: text/xml; charset=utf-8 

SOAPAction: "http://tempuri.org/ILogisticsService/方法名" 

错误示例:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

 <s:Body> <s:Fault> <faultcode>s:Client</faultcode> <faultstring xml:lang="zh-CN">错误消息</faultstring> <detail>

 <FaultMessage xmlns="http://schemas.datacontract.org/2004/07/JSON.Logistics.Emmis.Entity"

xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Message>错误消息</Message> <Type>消息格式(Normal:普通;Unlicensed:无效授权)</Type>

</FaultMessage>

</detail>

</s:Fault>

 </s:Body>

</s:Envelope> 2.验证用户是否有效

方法名:Verify

提交数据: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

 <s:Body> <Verify xmlns="http://tempuri.org/"> <clientId>授权ID</clientId> <clientAccount>授权名称</clientAccount>

</Verify>

 </s:Body>

</s:Envelope>

返回数据(错误请参考最上方错误示例): <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

 <s:Body> <VerifyResponse xmlns="http://tempuri.org/"> <VerifyResult>true|false</VerifyResult>

</VerifyResponse>

 </s:Body>

</s:Envelope>

3.获取物流方式

方法名:GetLogisticsWay

提交数据: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <GetLogisticsWay xmlns="http://tempuri.org/"/>

</s:Body>

</s:Envelope>

返回数据(错误请参考最上方错误示例): <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

 <s:Body> <GetLogisticsWayResponse xmlns="http://tempuri.org/">

 <GetLogisticsWayResult xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"

xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <a:string>渠道,例:xianggangDHL普货</a:string> <a:string>FedEx</a:string> <a:string>瑞典挂号</a:string> <a:string>新加坡平邮</a:string>

</GetLogisticsWayResult>

</GetLogisticsWayResponse>

 </s:Body>

</s:Envelope>

全部回复(1)
唯you爱

这个API接口应该很好搞  可以***Q 895163012帮你解决

  • 回复 大佬,加了,通过一下
    作者 2020-05-26 19:38:28
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 意见反馈 讲师合作 广告合作 最新更新
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习
PHP中文网抖音号
发现有趣的

Copyright 2014-2024 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号