【发布时间】:2009-08-28 21:00:06
【问题描述】:
到目前为止,我已尝试访问此 WSDL:
https://login.azoogleads.com/affiliate/tool/soap_api
来自我知道的两个常见的 Python SOAP 客户端:SOAPpy 和 ZSI.client.Binding。 SOAPpy 在 PyXML 中引发异常(xml.parsers.expat.ExpatError: not well-formed (invalid token)),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')
【问题讨论】: