SOAP failure

savio savio.saldanha at ca.com
Mon Dec 6 18:50:37 EST 2004


Hi 

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 = 'http://www.xmethods.net/sd/2001/TemperatureService.wsdl'
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\soapviawsdl.py", line 3, in ?
    server = WSDL.Proxy(wsdlFile)
  File "C:\Python23\lib\site-packages\SOAPpy\WSDL.py", line 67, in
__init__
    self.wsdl = reader.loadFromString(str(wsdlsource))
  File "C:\Python23\lib\site-packages\SOAPpy\wstools\WSDLTools.py",
line 49, in loadFromString
    return self.loadFromStream(StringIO(data))
  File "C:\Python23\lib\site-packages\SOAPpy\wstools\WSDLTools.py",
line 28, in loadFromStream
    document = DOM.loadDocument(stream)
  File "C:\Python23\lib\site-packages\SOAPpy\wstools\Utility.py", line
572, in loadDocument
    x = xml.dom.minidom.parse(data)
  File "C:\Python23\Lib\site-packages\_xmlplus\dom\minidom.py", line
1908, in parse
    return expatbuilder.parse(file)
  File "C:\Python23\lib\site-packages\_xmlplus\dom\expatbuilder.py",
line 933, in parse
    result = builder.parseFile(file)
  File "C:\Python23\lib\site-packages\_xmlplus\dom\expatbuilder.py",
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