suds-py3 官方文档::https://suds-py3.readthedocs.io/en/latest/
WSDL文档:http://www.webxml.com.cn/zh_cn/index.aspx
首先安装suds-py3 , suds-jurko
pip install suds-jurko
You will need to know the url for WSDL for each service used. Simply create a client for that service as follows:
#!python
from suds.client import Client
url = 'http://localhost:7080/webservices/WebServiceTestBean?wsdl'
client = Client(url)
print (cilent)
You can inspect service object with: str() as follows to get a list of methods provide by the service:
# 调用服务的接口
print(cilent.service.getAPmoney(compId='x',account='x',apName='s',apPassword='x'))
print(cilent.service.sendMessage(apName='x',apPassword='',compId='x',account='x',
calledNumber='1899566****',sendTime='',content='hh'))