有大佬知道這種接口文件怎么使用嗎?
問題描述
1.接口說明
授權(quán) ID 與授權(quán)賬號聯(lián)系寶通達(dá)業(yè)務(wù)獲取
請求地址: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:無效授權(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>
返回數(shù)據(jù)(錯誤請參考最上方錯誤示例): <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>
返回數(shù)據(jù)(錯誤請參考最上方錯誤示例): <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接口應(yīng)該很好搞 可以***Q 895163012幫你解決
相關(guān)文章:
1. 管理員信息修改時的密碼問題2. html5 - 為什么使使用vue cli 腳手架,post-css 沒有自動對css3屬性自動添加瀏覽器前綴呢?3. angular.js - 輸入郵箱地址之后, 如何使其自動在末尾添加分號?4. android - RxJava 中有根據(jù)條件執(zhí)行不同函數(shù)的操作符嗎?5. javascript - 如何使用nodejs 將.html 文件轉(zhuǎn)化成canvas6. java如何生成token?7. javascript - 后臺管理系統(tǒng)左側(cè)折疊導(dǎo)航欄數(shù)據(jù)較多,怎么樣直接通過搜索去定位到具體某一個菜單項(xiàng)位置,并展開當(dāng)前菜單8. javascript - html5的data屬性怎么指定一個function函數(shù)呢?9. 如何解決docker宿主機(jī)無法訪問容器中的服務(wù)?10. mysql - 電商如何存儲營業(yè)額數(shù)據(jù)
