[英]python zeep, how can I find out easier the binding a method/property belongs to?
我尝试使用python-zeep包消耗一些肥皂服务( ID3 Global )
这似乎是可行的,对于最近添加的功能(WSSE身份验证和使用多个绑定的可能性)表示敬意
现在,我尝试循环中的每个绑定以找到正确的绑定,例如:
url = '{http://www.id3global.com/ID3gWS/2013/04}'
bindings = [key.replace(url, '') for key in client.wsdl.bindings]
for binding in bindings:
try:
service = client.bind('ID3global', binding)
result = service.AuthenticateSP(
ProfileIDVersion=profile_id_version,
InputData=input_data
)
print("\n\nAuthenticateSP's result: {}\n\n".format(result))
except Exception as exception:
print('Exception: {}\n'.format(exception))
有没有更好的办法?
谢谢
我不确定为什么要遍历所有端口以找到所需的端口。 您可以检查wsdl或使用python -mzeep <wsdl>
查找哪个操作属于哪个端口
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.