有大佬知道这种接口文件怎么使用吗?
问题描述
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. docker start -a dockername 老是卡住,什么情况?2. java内存模型的happens-before语义顺序问题3. 编程 - java 为什么没有静态方法接口,有没有哪门语言有静态方法接口。4. :not 选择器 无效果 原因何在?5. android - as添加依赖时一直是gradle:download状态6. objective-c - iOS开发使用什么对html进行代码高亮7. java - 并发操作下关于队列的疑问?8. linux - 阿里云服务器(centos)中svn同步web目录的问题?9. 在html文件的目录下输入代码按回车后显示这个,哪位大佬帮帮我 呀10. javascript - 关于微信授权的问题。
