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=##xmlxmlns:i=##xml.Logistics.Emmis.Entity"
xmlns:i=##xmlxmlns:i=##xmlxmlns: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>
##<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&istics</a:string>
</GetLogisticsWayResult&istics
</GetLogisticsWayResponse>
</s:Body>
</s:Envelope>
############</s:Envelope>###############</s:Envelope>###############
這個API介面應該很好搞 可以***Q 895163012幫你解決