SOAP Python clients won't work with this WSDL
So far, I've tried to access this WSDL:
https://login.azoogleads.com/affiliate/tool/soap_api
from two common Python SOAP clients that I know of: SOAPpy and ZSI.client.Binding. SOAPpy raises an exception in PyXML (xml.parsers.expat.ExpatError: malformed (invalid token)), and ZSI raises an exception in urlparse.
I hope that:
1.) I am using these libraries incorrectly (usage below)
or
2.) There is another SOAP library that I am not aware of will be able to handle this
Here's my use of the libraries:
from ZSI.client import Binding
b = Binding('https://login.azoogleads.com/affiliate/tool/soap_api/')
hash = b.authenticate('should', 'get', 'authenticationfailurefromthis')
and
import SOAPpy
b = SOAPpy.WSDL.Proxy('https://login.azoogleads.com/affiliate/tool/soap_api/')
hash = b.authenticate('any', 'info', 'shoulddo')
+2
TH.
source
to share
1 answer
yours not actually giving it the correct WSDL endpoint will try explicilty by giving it the WSDL location, not the directory it is in. Remember that the computer is, of course, stupid things!
+2
Jon
source
to share