from suds.client import Client
url = 'http://njgin.state.nj.us/OIT_AddrMatch/OIT_AddrMatch?WSDL'
client = Client(url)
print client
[Dbg]>>>
Traceback (most recent call last):
File "<string>", line 129, in run
File "C:\PortablePython_1.1_py2.6.1\App\lib\bdb.py", line 368, in run
exec cmd in globals, locals
File "C:\Users\Staples\Documents\module2.py", line 3, in <module>
client = Client(url)
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\client.py", line 109, in __init__
self.wsdl = Definitions(url, options)
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 194, in __init__
self.build_schema()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 255, in build_schema
self.schema = container.load()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 90, in load
child.open_imports()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 277, in open_imports
imported = imp.open()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\sxbasic.py", line 608, in open
result = self.download()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\sxbasic.py", line 626, in download
root = Parser(transport).parse(url=url).root()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\sax\parser.py", line 134, in parse
sax.parse(fp)
File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\expatreader.py", line 211, in feed
self._err_handler.fatalError(exc)
File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: c:\users\staples\appdata\local\temp\suds\suds-649682136.http:10:2: mismatched tag
<?xml version="1.0" encoding="ISO-8859-1"?>
<body></body>
[Dbg]>>>
Traceback (most recent call last):
File "<string>", line 129, in run
File "C:\PortablePython_1.1_py2.6.1\App\lib\bdb.py", line 368, in run
exec cmd in globals, locals
File "C:\Users\Staples\Documents\module2.py", line 3, in <module>
client = Client(url)
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\client.py", line 109, in __init__
self.wsdl = Definitions(url, options)
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 194, in __init__
self.build_schema()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 255, in build_schema
self.schema = container.load()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 92, in load
child.dereference()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 295, in dereference
midx, deps = x.dependencies()
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\sxbasic.py", line 330, in dependencies
raise TypeNotFound(self.ref)
suds.TypeNotFound: Type not found: '(Array, http://schemas.xmlsoap.org/soap/encoding/, )'
<http://svn.fedorahosted.org/svn/suds/tags/release-0.3.2/tests/public.py>y.
Similar error when I try the mssoapinterop part of the test at
http://svn.fedorahosted.org/svn/suds/tags/release-0.3.2/tests/public.p
I get /Type not found: '(Array,
http://schemas.xmlsoap.org/soap/encoding/, )' /This WSDL uses
"soapenc:Array" syntax.
Sorry, the WIKI references the wrong version of public.py here. I've updated to point to the latest in trunk.