2

到目前为止,我已尝试访问此 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')
4

1 回答 1

2

你实际上并没有给它一个有效的 WSDL 端点尝试明确地给它 WSDL 位置而不是它所在的目录。记住计算机是非常愚蠢的东西!

于 2009-08-30T12:44:32.413 回答