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.ne t/sd/2001/TemperatureServ ice.wsdl'
server = WSDL.Proxy(wsdl File)
server.soapprox y.config.dumpSO APOut = 1
server.soapprox y.config.dumpSO APIn = 1
x = server.getTemp( '90210')
print x
Traceback (most recent call last):
File "D:\mypython\so apviawsdl.py", line 3, in ?
server = WSDL.Proxy(wsdl File)
File "C:\Python23\li b\site-packages\SOAPpy \WSDL.py", line 67, in
__init__
self.wsdl = reader.loadFrom String(str(wsdl source))
File "C:\Python23\li b\site-packages\SOAPpy \wstools\WSDLTo ols.py",
line 49, in loadFromString
return self.loadFromSt ream(StringIO(d ata))
File "C:\Python23\li b\site-packages\SOAPpy \wstools\WSDLTo ols.py",
line 28, in loadFromStream
document = DOM.loadDocumen t(stream)
File "C:\Python23\li b\site-packages\SOAPpy \wstools\Utilit y.py", line
572, in loadDocument
x = xml.dom.minidom .parse(data)
File "C:\Python23\Li b\site-packages\_xmlpl us\dom\minidom. py", line
1908, in parse
return expatbuilder.pa rse(file)
File "C:\Python23\li b\site-packages\_xmlpl us\dom\expatbui lder.py",
line 933, in parse
result = builder.parseFi le(file)
File "C:\Python23\li b\site-packages\_xmlpl us\dom\expatbui lder.py",
line 210, in parseFile
parser.Parse(bu ffer, 0)
ExpatError: not well-formed (invalid token): line 1, column 5
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.ne t/sd/2001/TemperatureServ ice.wsdl'
server = WSDL.Proxy(wsdl File)
server.soapprox y.config.dumpSO APOut = 1
server.soapprox y.config.dumpSO APIn = 1
x = server.getTemp( '90210')
print x
Traceback (most recent call last):
File "D:\mypython\so apviawsdl.py", line 3, in ?
server = WSDL.Proxy(wsdl File)
File "C:\Python23\li b\site-packages\SOAPpy \WSDL.py", line 67, in
__init__
self.wsdl = reader.loadFrom String(str(wsdl source))
File "C:\Python23\li b\site-packages\SOAPpy \wstools\WSDLTo ols.py",
line 49, in loadFromString
return self.loadFromSt ream(StringIO(d ata))
File "C:\Python23\li b\site-packages\SOAPpy \wstools\WSDLTo ols.py",
line 28, in loadFromStream
document = DOM.loadDocumen t(stream)
File "C:\Python23\li b\site-packages\SOAPpy \wstools\Utilit y.py", line
572, in loadDocument
x = xml.dom.minidom .parse(data)
File "C:\Python23\Li b\site-packages\_xmlpl us\dom\minidom. py", line
1908, in parse
return expatbuilder.pa rse(file)
File "C:\Python23\li b\site-packages\_xmlpl us\dom\expatbui lder.py",
line 933, in parse
result = builder.parseFi le(file)
File "C:\Python23\li b\site-packages\_xmlpl us\dom\expatbui lder.py",
line 210, in parseFile
parser.Parse(bu ffer, 0)
ExpatError: not well-formed (invalid token): line 1, column 5