有大佬知道這種接口文件怎么使用嗎?
問(wèn)題描述
1.接口說(shuō)明
授權(quán) ID 與授權(quán)賬號(hào)聯(lián)系寶通達(dá)業(yè)務(wù)獲取
請(qǐng)求地址:http://open.btdair.com:8099/LogisticsService.svc?
wsdl 請(qǐng)求方式:POST
Header 中包含:
Content-Type: text/xml; charset=utf-8
SOAPAction: "http://tempuri.org/ILogisticsService/方法名"
錯(cuò)誤示例:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body> <s:Fault> <faultcode>s:Client</faultcode> <faultstring xml:lang="zh-CN">錯(cuò)誤消息</faultstring> <detail>
<FaultMessage xmlns="http://schemas.datacontract.org/2004/07/JSON.Logistics.Emmis.Entity"
xmlns:i="http://www.w3.org/2001/XMLSchema-instance"> <Message>錯(cuò)誤消息</Message> <Type>消息格式(Normal:普通;Unlicensed:無(wú)效授權(quán))</Type>
</FaultMessage>
</detail>
</s:Fault>
</s:Body>
</s:Envelope> 2.驗(yàn)證用戶是否有效
方法名:Verify
提交數(shù)據(jù): <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body> <Verify xmlns="http://tempuri.org/"> <clientId>授權(quán)ID</clientId> <clientAccount>授權(quán)名稱</clientAccount>
</Verify>
</s:Body>
</s:Envelope>
返回?cái)?shù)據(jù)(錯(cuò)誤請(qǐng)參考最上方錯(cuò)誤示例): <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
提交數(shù)據(jù): <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> <GetLogisticsWay xmlns="http://tempuri.org/"/>
</s:Body>
</s:Envelope>
返回?cái)?shù)據(jù)(錯(cuò)誤請(qǐng)參考最上方錯(cuò)誤示例): <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>瑞典掛號(hào)</a:string> <a:string>新加坡平郵</a:string>
</GetLogisticsWayResult>
</GetLogisticsWayResponse>
</s:Body>
</s:Envelope>
問(wèn)題解答
回答1:這個(gè)API接口應(yīng)該很好搞 可以***Q 895163012幫你解決
相關(guān)文章:
1. 關(guān)于docker下的nginx壓力測(cè)試2. mac里的docker如何命令行開(kāi)啟呢?3. docker - 各位電腦上有多少個(gè)容器啊?容器一多,自己都搞混了,咋辦呢?4. 關(guān)docker hub上有些鏡像的tag被標(biāo)記““This image has vulnerabilities””5. docker容器呢SSH為什么連不通呢?6. nignx - docker內(nèi)nginx 80端口被占用7. Docker for Mac 創(chuàng)建的dnsmasq容器連不上/不工作的問(wèn)題8. javascript - 最近用echarts做統(tǒng)計(jì)圖時(shí)遇到兩個(gè)問(wèn)題!!9. docker gitlab 如何git clone?10. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問(wèn)題。

網(wǎng)公網(wǎng)安備