SOAP failure

savio savio.saldanha at
Tue Dec 7 00:50:37 CET 2004


I am trying to run the following code snip - it works on my machine at
home - does not work in the office - is it a firewall thing?  Can
anyone help?

from SOAPpy import WSDL
wsdlFile = ''
server = WSDL.Proxy(wsdlFile)
server.soapproxy.config.dumpSOAPOut = 1
server.soapproxy.config.dumpSOAPIn = 1
x = server.getTemp('90210')
print x 

Traceback (most recent call last):
  File "D:\mypython\", line 3, in ?
    server = WSDL.Proxy(wsdlFile)
  File "C:\Python23\lib\site-packages\SOAPpy\", line 67, in
    self.wsdl = reader.loadFromString(str(wsdlsource))
  File "C:\Python23\lib\site-packages\SOAPpy\wstools\",
line 49, in loadFromString
    return self.loadFromStream(StringIO(data))
  File "C:\Python23\lib\site-packages\SOAPpy\wstools\",
line 28, in loadFromStream
    document = DOM.loadDocument(stream)
  File "C:\Python23\lib\site-packages\SOAPpy\wstools\", line
572, in loadDocument
    x = xml.dom.minidom.parse(data)
  File "C:\Python23\Lib\site-packages\_xmlplus\dom\", line
1908, in parse
    return expatbuilder.parse(file)
  File "C:\Python23\lib\site-packages\_xmlplus\dom\",
line 933, in parse
    result = builder.parseFile(file)
  File "C:\Python23\lib\site-packages\_xmlplus\dom\",
line 210, in parseFile
    parser.Parse(buffer, 0)
ExpatError: not well-formed (invalid token): line 1, column 5

More information about the Python-list mailing list