469,271 Members | 1,014 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

SOAP failure


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
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
Jul 18 '05 #1
0 969

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Hans Kesting | last post: by
reply views Thread by David Haynes | last post: by
2 posts views Thread by Yossi | last post: by
2 posts views Thread by furrypop | last post: by
5 posts views Thread by =?Utf-8?B?TWFyaw==?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.