背景:
这个是中东一个快递公司的api接口,背景就是要调用该公司的api接口,查询快递的物流信息,由于它是使用webservice的方式访问,所以特此记录一下
笔者是使用python3.6
安装:
pip3.6 install suds-jurko
代码:
from suds.client import Client
url = Default.ARAMEX_URL
url = "http://ws.aramex.net/ShippingAPI.V2/Tracking/Service_1_0.svc?singleWsdl"
client = Client(url)
print(client)
输出内容:
Suds ( https://fedorahosted.org/suds/ ) version: 0.6
Service ( Service_1_0 ) tns="http://ws.aramex.net/ShippingAPI/v1/"
Prefixes (3)
ns0 = "http://schemas.microsoft.com/2003/10/Serialization/"
ns1 = "http://schemas.microsoft.com/2003/10/Serialization/Arrays"
ns2 = "http://ws.aramex.net/ShippingAPI/v1/"
Ports (2):
(Basi