I am calling a WSDL web service from Python using SOAPpy. The call I need to make is to the method Auth_login. This has 2 arguments - the first, a string being the API key; the second, a custom type containing username and password. The custom type is called Auth_credentialsData which contains 2 values as stings - one for the username and one for the password. How can I create this custom type using SOAPpy? I tried passing a list and a dictionary, none of which work.
Code so far:
from SOAPpy import WSDL
wsdlUrl = 'https://ws.pingdom.com/soap/PingdomAPI.wsdl'
client = WSDL.Proxy(wsdlUrl)
Tried both:
credentials = ['[email protected]', 'password']
client.Auth_login('key', credentials)
and
credentials = {'username': '[email protected]', 'password': 'passsword'}
client.Auth_login('key', credentials)
both of which give an authentication failed error.