November 29, 2002

Python SOAP problem

I just installed SOAPpy097 and when I run SOAPtest.py I get a exception: xml.sax._exceptions.SAXParseException: :5:44: not well-formed (invalid token)

What's really surprising is that a simple search on Google for it gave me no clues! I'm just hoping that someone will hit page this and give me a clue.

Come to think of it, recently my biggest banes in life recently has been from tools that use XML parsers (i.e Ant & SOAP). The tools are fine but XML parsers are so terse in their error messages. It's as if they are offended that you have presented them with something dirty. It reminds me of the time I gave the girl at the Tower Records checkout an HMV point card...

The full trace is:Traceback (most recent call last):
File "C:\bin\Python\SOAPpy097\SOAPtest.py", line 717, in ?
z = parseSOAPRPC(y)
File "C:\bin\Python\SOAPpy097\SOAP.py", line 2804, in parseSOAPRPC
t = _parseSOAP(xml_str, rules = rules)
File "C:\bin\Python\SOAPpy097\SOAP.py", line 2788, in _parseSOAP
parser.parse(inpsrc)
File "C:\bin\Python\Python22\Lib\site-packages\_xmlplus\sax\expatreader.py", l
ine 107, in parse
xmlreader.IncrementalParser.parse(self, source)
File "C:\bin\Python\Python22\Lib\site-packages\_xmlplus\sax\xmlreader.py", lin
e 123, in parse
self.feed(buffer)
File "C:\bin\Python\Python22\Lib\site-packages\_xmlplus\sax\expatreader.py", l
ine 211, in feed
self._err_handler.fatalError(exc)
File "C:\bin\Python\Python22\Lib\site-packages\_xmlplus\sax\handler.py", line
38, in fatalError
raise exception
xml.sax._exceptions.SAXParseException: :5:44: not well-formed (invalid
token)

Posted by stuartcw at November 29, 2002 10:56 AM
Comments

hi,

did you find a solution for your problem with xml.sax._exceptions.SAXParseException: :5:44: not well-formed (invalid token) ?


regards,
nico

Posted by: nico grubert at February 10, 2003 11:13 PM