python zeep, how can I find out easier the binding a method/property belongs to?
<p>I try to use the python-zeep package to consume some soap service (<a href="http://www.id3globalsupport.com/Website/content/Sample%20Code/Web%20Dev%20Guide%20HTML/developers%20guide.html" rel="nofollow">ID3 Global</a>)</p>

<p>This seems doable, kudos for the recently added features (WSSE authentication and the possibility to use several bindings)</p>

<p>For now I try every binding in a cycle in order to find the right one, something like:</p>

<pre><code>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))
</code></pre>

<p>Is there a better way?</p>

<p>Thanks</p>