【问题标题】:Python SOAP clients will not work with this WSDLPython SOAP 客户端无法使用此 WSDL
【发布时间】: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')

【问题讨论】:

    标签: python soap soappy zsi


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2014-12-30
      • 2020-02-09
      • 2010-12-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-20
      • 1970-01-01
      • 2013-11-08
      相关资源
      最近更新 更多