0

我正在尝试使用 zeep 创建一个 python 肥皂客户端。但我不知道如何使用 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

4

0 回答 0