轻量级SOAP客户端 安装 pip install 使用 from suds.client import Client client = Client( 'http://xx.xx.xx.xx:8080/system/services?wsdl' ) 传参 方法一 client = Client(url) m = client.factory.create( 'paramType' ) m .p1 = "param
轻量级SOAP客户端
安装
pip install使用
from suds.client import Clientclient = Client('http://xx.xx.xx.xx:8080/system/services?wsdl')
传参
方法一
client=Client(url)m=client.factory.create('paramType')
m.p1="param 1"
m.p2="param 2"
result=client.service.fun(m)
方法二
d=dict(name='Eric',age=17,phone='11111111111')result=client.service.getHrmUserInfo(d)
print(result)
参考
https://pypi.org/project/suds/