[Fedora-suds-list] New To Python & SUDS

Patrick Walter walterpa at sbcglobal.net
Sat Nov 1 20:56:49 UTC 2008


I have dowloaded/installed the following with no errors:
  Python 2.5
  SUDS
 
I am running on a PC.

When running the following python code I get the following errors.

THANKS FOR YOUR HELP!!!
Patrick

import suds.metrics as metrics
from suds import WebFault
from suds.client import Client
wsdlurl = 'http://saintbook.org/MightyMaxims/MightyMaxims.asmx?WSDL'
client = Client(wsdlurl)

------------------------------------------------------------------------------------------------------------------------------------
ERROR:
Traceback (most recent call last):

File "C:\eclipse\workspace\TestCtsWebService\src\root\examples\wsSUDSTest.py", line 13, in <module>

client = Client(wsdlurl)

File "C:\Python25\lib\site-packages\suds\client.py", line 67, in __init__

client = SoapClient(url, kwargs)

File "C:\Python25\lib\site-packages\suds\client.py", line 369, in __init__

self.wsdl = Definitions(url, self.arg.opener)

File "C:\Python25\lib\site-packages\suds\wsdl.py", line 166, in __init__

root = p.parse(url=url).root()

File "C:\Python25\lib\site-packages\suds\sax\parser.py", line 118, in parse

parse(self.urlopen(url), handler)

File "C:\Python25\lib\site-packages\_xmlplus\sax\__init__.py", line 31, in parse

parser.parse(filename_or_stream)

File "C:\Python25\lib\site-packages\_xmlplus\sax\expatreader.py", line 109, in parse

xmlreader.IncrementalParser.parse(self, source)

File "C:\Python25\lib\site-packages\_xmlplus\sax\xmlreader.py", line 123, in parse

self.feed(buffer)

File "C:\Python25\lib\site-packages\_xmlplus\sax\expatreader.py", line 220, in feed

self._err_handler.fatalError(exc)

File "C:\Python25\lib\site-packages\_xmlplus\sax\handler.py", line 38, in fatalError

raise exception

xml.sax._exceptions.SAXParseException: <unknown>:1:1: not well-formed (invalid token)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-suds-list/attachments/20081101/0ffefb0b/attachment.htm>


More information about the fedora-suds-list mailing list