[Fedora-suds-list] ImportDoctor or SAX?

Zhiwu Xie zxie.lists at gmail.com
Thu May 21 17:57:38 UTC 2009


Newbie here, would appreciate your help and/or hint.

Not sure if it's because I didn't use ImportDoctor properly or because it's
a SAX parser so it didn't reach the scheme for the namespace
'urn:theplatform-com:v4/base/' before trying to parse it, or it's the WSDL
file (http://admin.theplatform.com/API/urn:service.wsdl) that's wrongly
formed.

Thanks a lot,

Zhiwu


>>> from suds.xsd.doctor import *
>>> imp = Import('http://www.w3.org/2001/XMLSchema')
>>> imp.filter.add('urn:theplatform-com:v4/base/')
>>> doctor = ImportDoctor(imp)
>>> url = 'http://admin.theplatform.com/API/urn:service.wsdl'
>>> client = Client(url, schemadoctor=doctor)
Traceback (most recent call last):
  File "<pyshell#9>", line 1, in <module>
    client = Client(url, schemadoctor=doctor)
  File "C:\Python25\Lib\site-packages\suds\client.py", line 106, in __init__
    self.wsdl = Definitions(url, options)
  File "C:\Python25\Lib\site-packages\suds\wsdl.py", line 193, in __init__
    self.build_schema()
  File "C:\Python25\Lib\site-packages\suds\wsdl.py", line 255, in
build_schema
    self.schema = container.load()
  File "C:\Python25\Lib\site-packages\suds\xsd\schema.py", line 92, in load
    child.dereference()
  File "C:\Python25\Lib\site-packages\suds\xsd\schema.py", line 294, in
dereference
    midx, deps = x.dependencies()
  File "C:\Python25\Lib\site-packages\suds\xsd\sxbasic.py", line 783, in
dependencies
    raise TypeNotFound(qref)
TypeNotFound: Type not found: '(BusinessObject,
urn:theplatform-com:v4/base/, )'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-suds-list/attachments/20090521/c78c3b60/attachment.htm>


More information about the fedora-suds-list mailing list