python-zeep パッケージを使用して、soap サービス ( 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))
より良い方法はありますか?
ありがとう