有大佬知道这种接口文件怎么使用吗?
问题描述
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:这个API接口应该很好搞 可以***Q 895163012帮你解决
相关文章:
1. java - mybatis源码分析2. 修改mysql配置文件的默认字符集重启后依然不生效3. python相关问题求解决,有偿4. android - 安卓activity无法填充屏幕5. java - MongoDB关闭连接6. angular.js - 用angularjs的service封装百度地图api出错,请问原因?7. css - 移动端h5播放器问题求解决,急急8. java - ehcache缓存用的是虚拟机内存么?9. mysql - 我用SQL语句 更新 行的时候,发现全部 中文都被清空了,请问怎么解决?10. mysql - 数据库:获取两个字段与获取*,传输的数据量差距大吗?

网公网安备