<div>Jeff,</div><div><br></div><div>Thanks for your gracious help to an embarrassed newbie. I'm running <a href="http://www.portablepython.com/">Portable Python</a> 1.1 on Vista Home Premium with the 0.3.7 \suds tree extracted to \Lib. Using <a href="http://code.google.com/p/pyscripter/">PyScripter </a>1.9.9.6 for IDE.</div>
<div><br></div><div>My code:</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">from suds.client import Client<br>url = '<a href="http://njgin.state.nj.us/OIT_AddrMatch/OIT_AddrMatch?WSDL" target="_blank">http://njgin.state.nj.us/OIT_AddrMatch/OIT_AddrMatch?WSDL</a>'<br>
client = Client(url)<br>print client</blockquote><div><br></div>With a cleared ...\temp\suds directory, I get<div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">
[Dbg]>>> <br>Traceback (most recent call last):<br> File "<string>", line 129, in run<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\bdb.py", line 368, in run<br> exec cmd in globals, locals<br>
File "C:\Users\Staples\Documents\module2.py", line 3, in <module><br> client = Client(url)<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\client.py", line 109, in __init__<br> self.wsdl = Definitions(url, options)<br>
File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 194, in __init__<br> self.build_schema()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 255, in build_schema<br>
self.schema = container.load()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 90, in load<br> child.open_imports()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 277, in open_imports<br>
imported = imp.open()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\sxbasic.py", line 608, in open<br> result = self.download()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\sxbasic.py", line 626, in download<br>
root = Parser(transport).parse(url=url).root()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\sax\parser.py", line 134, in parse<br> sax.parse(fp)<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\expatreader.py", line 107, in parse<br>
xmlreader.IncrementalParser.parse(self, source)<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\xmlreader.py", line 123, in parse<br> self.feed(buffer)<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\expatreader.py", line 211, in feed<br>
self._err_handler.fatalError(exc)<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\xml\sax\handler.py", line 38, in fatalError<br> raise exception<br>xml.sax._exceptions.SAXParseException: c:\users\staples\appdata\local\temp\suds\suds-649682136.http:10:2: mismatched tag</blockquote>
<div>
<div><br></div><div><div class="gmail_quote"><div>Looked like Ticket #256. Not knowing better, I tried replacing the suds-649682136.http tempfile with some valid(?) innocuous(?) XML and making it read-only:</div><div><br>
</div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><?xml version="1.0" encoding="ISO-8859-1"?><br><body></body></blockquote>
<div><div><div class="gmail_quote">
<div><br></div><div>After this change, I get</div><div><br></div></div></div></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;">[Dbg]>>> <br>Traceback (most recent call last):<br>
File "<string>", line 129, in run<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\bdb.py", line 368, in run<br> exec cmd in globals, locals<br> File "C:\Users\Staples\Documents\module2.py", line 3, in <module><br>
client = Client(url)<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\client.py", line 109, in __init__<br> self.wsdl = Definitions(url, options)<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 194, in __init__<br>
self.build_schema()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\wsdl.py", line 255, in build_schema<br> self.schema = container.load()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 92, in load<br>
child.dereference()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\schema.py", line 295, in dereference<br> midx, deps = x.dependencies()<br> File "C:\PortablePython_1.1_py2.6.1\App\lib\suds\xsd\sxbasic.py", line 330, in dependencies<br>
raise TypeNotFound(self.ref)<br>suds.TypeNotFound: Type not found: '(Array, <a href="http://schemas.xmlsoap.org/soap/encoding/">http://schemas.xmlsoap.org/soap/encoding/</a>, )'</blockquote><div><div><div class="gmail_quote">
<div><div><br></div><div>What would you suggest next? (When I copied the WSDL local and changed "soap-enc:" to "SOAP-ENC:" it went further but then I think it tried to open the real service URL as a local file and couldn't resolve the name for some reason ;-)</div>
<div><br></div><div>I could try: </div><div> a clean install of Python (but which version?) and </div><div> properly install a newer suds library (but would need pathetically detailed instructions) and am even willing to</div>
<div> replace my new best friend IDE with someone else (but who?), and then have no idea whether I might still</div><div>catch:</div><div> pandemic obscurebugitis.</div><div><br></div><div>>>> </div></div>
<div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>
<br>
Similar error when I try the mssoapinterop part of the test at<br>
<a href="http://svn.fedorahosted.org/svn/suds/tags/release-0.3.2/tests/public.p" target="_blank">http://svn.fedorahosted.org/svn/suds/tags/release-0.3.2/tests/public.p</a><br></div>
<<a href="http://svn.fedorahosted.org/svn/suds/tags/release-0.3.2/tests/public.py" target="_blank">http://svn.fedorahosted.org/svn/suds/tags/release-0.3.2/tests/public.py</a>>y.<div><br>
I get /Type not found: '(Array,<br>
<a href="http://schemas.xmlsoap.org/soap/encoding/" target="_blank">http://schemas.xmlsoap.org/soap/encoding/</a>, )' /This WSDL uses<br>
"soapenc:Array" syntax.<br>
</div></blockquote>
<br>
Sorry, the WIKI references the wrong version of public.py here. I've updated to point to the latest in trunk.</blockquote><div><br></div><div>Thank you sir for all your help!</div><div><br></div><div>Paul</div></div>
</div></div>