请求xml
ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.example.org/Ec/">
{"pageSize":"1","page":1}
appToken
appKey
getCountry
响应xml
ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://www.example.org/Ec/">
{"ask":"Success","message":"Success","pagination":{"page":"1","pageSize":"1"},"count":"260","nextPage":"true","data":[{"country_code":"AF","country_name":"阿富汗","country_name_en":"AFGHANISTAN"}]}
开始是准备使用python的zeep处理,参考链接
http://docs.python-zeep.org/e...
但是到了后面就不知道怎么写了。怎么发送appToken和appKey,paramsJson到服务器呢?如何写服务器提供的方法呢?跪求大神能够提供代码参考。使用其他python的库也可以。 万分感谢!
import zeep
wsdl = 'http://202.104.134.94:6280/default/svc/wsdl'
client = zeep.Client(wsdl=wsdl)
print(client)