1. Interface description
Authorization ID and authorized account contact Baotongda business to obtain
Request address: http://open.btdair.com:8099/LogisticsService.svc?
wsdl request method: POST
Header contains:
Content-Type: text/xml; charset=utf-8
SOAPAction: "http:/ /tempuri.org/ILogisticsService/Method name"
Error example:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" >
<s:Body> <s:Fault> <faultcode>s:Client</faultcode> <faultstring xml:lang="zh-CN">Error message</ faultstring> <detail>
<FaultMessage xmlns="http://schemas.datacontract.org/2004/07/JSON.Logistics.Emmis.Entity"
xmlns:i= "http://www.w3.org/2001/XMLSchema-instance"> <Message>Error message</Message> <Type>Message format (Normal: Normal; Unlicensed: Invalid authorization)</Type> ;
</FaultMessage>
</detail>
</s:Fault>
</s:Body>
</s:Envelope> 2. Verify whether the user is valid
Method name: Verify
Submit data: <s:Envelope xmlns: s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body> <Verify xmlns="http://tempuri.org/"> < ;clientId>Authorization ID</clientId> <clientAccount>Authorization Name</clientAccount>
</Verify>
</s:Body>
</s:Envelope>
Return data (for errors, please refer to the error example at the top): <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. Get the logistics method
Method name: GetLogisticsWay
Submit data: <s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body> < GetLogisticsWay xmlns="http://tempuri.org/"/>
</s:Body>
</s:Envelope>
Return data (For errors, please refer to the error example at the top): <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>Channel, for example: xianggangDHL general goods</a:string> <a: string>FedEx</a:string> <a:string>Swedish Registered</a:string> <a:string>Singapore Surface Mail</a:string>
</GetLogisticsWayResult>
</GetLogisticsWayResponse>
</s:Body>
</s:Envelope>
This API interface should be easy to use. ***Q 895163012 can help you solve it