国产成人精品亚洲777人妖,欧美日韩精品一区视频,最新亚洲国产,国产乱码精品一区二区亚洲

您的位置:首頁技術(shù)文章
文章詳情頁

有大佬知道這種接口文件怎么使用嗎?

瀏覽:128日期:2022-06-05 09:32:00

問題描述

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)文章:
主站蜘蛛池模板: 醴陵市| 株洲市| 西贡区| 孟连| 封开县| 昌邑市| 百色市| 广饶县| 江北区| 三门县| 沁阳市| 宁陵县| 集安市| 阿拉善右旗| 泰和县| 杭州市| 景谷| 珠海市| 余干县| 龙井市| 土默特右旗| 张家界市| 大足县| 苍南县| 天柱县| 湾仔区| 河北区| 阜城县| 拜泉县| 广南县| 姚安县| 皋兰县| 铜陵市| 台安县| 秭归县| 上饶市| 和硕县| 罗江县| 阜南县| 和顺县| 油尖旺区|