SOAP failure

S

savio

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,583
Members
45,073
Latest member
DarinCeden

Latest Threads

Top