到目前为止,我已经尝试访问这个WSDL:
https://login.azoogleads.com/affiliate/tool/soap_api
来自我所知道的两个常见的Python SOAP客户端: SOAPpy和ZSI.client.Binding。SOAPpy在PyXML中引发异常(xml.parsers.expat.ExpatError:不是格式良好(无效令牌)),而ZSI在urlparse库中引发异常。
我希望的是:
1.)我错误地使用了这些库(用法如下)
或
2.)还有另一个我不知道的SOAP库可以处理这个问题
下面是我对这些库的用法:
from ZSI.client import Binding
b = Binding('https://login.azoogleads.com/affiliate/tool/soap_api/')
hash = b.authenticate('should', 'get', 'authenticationfailurefromthis')和
import SOAPpy
b = SOAPpy.WSDL.Proxy('https://login.azoogleads.com/affiliate/tool/soap_api/')
hash = b.authenticate('any', 'info', 'shoulddo')发布于 2009-08-30 12:44:32
您实际上没有给它一个有效的WSDL端点,请尝试显式地给出它的WSDL位置,而不是它所在的目录。记住,计算机是非常愚蠢的东西!
https://stackoverflow.com/questions/1349325
复制相似问题