[Fedora-suds-list] Problem parsing a wsdl

Alastair Irving alastair.irving at sjc.ox.ac.uk
Wed Nov 4 16:44:51 UTC 2009


Hi

I'm very new to suds, so appologise in advance if I'm missing something 
obvious.  I'm running version 0.3.7 under Windows with python 2.6.

I tried running the following:

from suds.client import Client
c=Client('https://api.betfair.com/global/v3/BFGlobalService.wsdl')

I got the following traceback:

Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "build\bdist.win32\egg\suds\client.py", line 109, in __init__
File "build\bdist.win32\egg\suds\wsdl.py", line 194, in __init__
File "build\bdist.win32\egg\suds\wsdl.py", line 255, in build_schema
File "build\bdist.win32\egg\suds\xsd\schema.py", line 90, in load
File "build\bdist.win32\egg\suds\xsd\schema.py", line 277, in open_imports
File "build\bdist.win32\egg\suds\xsd\sxbasic.py", line 608, in open
File "build\bdist.win32\egg\suds\xsd\sxbasic.py", line 626, in download
File "build\bdist.win32\egg\suds\sax\parser.py", line 134, in parse
File "c:\Python26\lib\xml\sax\expatreader.py", line 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "c:\Python26\lib\xml\sax\xmlreader.py", line 123, in parse
self.feed(buffer)
File "c:\Python26\lib\xml\sax\expatreader.py", line 211, in feed
self._err_handler.fatalError(exc)
File "c:\Python26\lib\xml\sax\handler.py", line 38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: 
c:\docume~1\alasta~1\locals~1\temp\suds\s
uds-649682136.http:10:2: mismatched tag

The contents of the file refference by the last line are:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" 
"http://www.w3.org/TR/1999/REC-html401-19991224/strict.dtd">

<!-- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"

"http://www.w3.org/TR/html4/strict.dtd"> -->

<HTML>

<HEAD>

<META HTTP-EQUIV="Refresh" CONTENT="0.1">

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<META HTTP-EQUIV="Expires" CONTENT="-1">

<TITLE></TITLE>

</HEAD>

<BODY><P></BODY>

</HTML>

Something's clearly gone wrong as it surely shouldn't be fetching HTML 
files.  However I think its unlikely that there would be a problem with 
the wsdl so I suspect its either a problem with suds or with my usage of it.

Any help will be much appreciated.

Alastair Irving









More information about the suds mailing list