SUDS SOAP“dependancies suds.TypeNotFound:Type not found”错误

时间:2013-03-04 05:20:15

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

我在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

但它在控制台上抛出了一些错误,

  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在这里。

所以我们中的任何一个人在此之前都遇到过这个问题。得到了解决?,然后请建议适当的解决方案来解决相同的问题。

Warm Regrads,

NIKS

1 个答案:

答案 0 :(得分:2)

以下适用于我:

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