【问题标题】:SUDS SOAP "dependancies suds.TypeNotFound: Type not found" ErrorSUDS SOAP“依赖项 suds.TypeNotFound:找不到类型”错误
【发布时间】:2013-03-04 05:20:15
【问题描述】:

我在 GAE python 中使用SUDS WSDL(SOAP) Web 服务。

& 尝试使用此 46.51.221.138/PBExternalServices/v1/soap?wsdl

这是Py代码

from suds.client import Client
client = Client(url) 
print client

但是它在 console 上抛出了一些错误,

  Traceback (most recent call last):
  File "soap.py", line 14, in <module>
    client = Client(url)
      File "build\bdist.win32\egg\suds\client.py", line 112, in __init__
      File "build\bdist.win32\egg\suds\reader.py", line 152, in open
      File "build\bdist.win32\egg\suds\wsdl.py", line 159, in __init__
      File "build\bdist.win32\egg\suds\wsdl.py", line 220, in build_schema
      File "build\bdist.win32\egg\suds\xsd\schema.py", line 95, in load
      File "build\bdist.win32\egg\suds\xsd\schema.py", line 323, in dereference
      File "build\bdist.win32\egg\suds\xsd\sxbasic.py", line 469, in dependencies
    suds.TypeNotFound: Type not found: '(GetAccountBalanceFaultResponse, http://www.
    payback.net/lmsglobal/xsd/v1/types, )'

注意:我读到了一些需要使用suds.xsd.doctor 的地方,因为这个 WSDL 似乎以不同的方式损坏了,但不幸的是我不知道如何在这里使用这个suds.xsd.doctor

所以我们中的任何人之前都遇到过这个问题并得到了解决?那么请提出适当的解决方案来解决同样的问题。

温暖的毕业生,

尼克

【问题讨论】:

    标签: python xml google-app-engine soap suds


    【解决方案1】:

    以下对我有用:

    from suds.client import Client
    wsdl_url = 'http://46.51.221.138/PBExternalServices/v1/soap?wsdl'
    client = Client(wsdl_url, autoblend=True)
    

    【讨论】:

      猜你喜欢
      • 2012-02-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-04-23
      • 2012-03-10
      • 1970-01-01
      • 2023-03-19
      相关资源
      最近更新 更多