Python Soap客户端WSDL函数

时间:2017-07-20 13:50:23

标签: python web-services soap wsdl zeep

我正在尝试用zeep创建一个python soap客户端。 但我无法弄清楚如何使用WSDL中定义的函数。

这是我的代码:

from requests import Session
from requests.auth import HTTPBasicAuth
import zeep
from zeep.transports import Transport


session = Session()
session.auth = HTTPBasicAuth('admin', 'ip411')
transport_with_basic_auth = Transport(session=session)

client = 

zeep.Client(wsdl='http://10.8.20.27/pbx10_00.wsdl',transport=transport_with_basic_auth)

client.service.Initialize('soap','test',True,True,True,True,True) 

您可以在此处查看WSDL:www.innovaphone.com/wsdl/pbx10_00.wsdl

0 个答案:

没有答案