Some errors when running code in diveintopython: (

iclinux at gmail.com iclinux at gmail.com
Fri Dec 23 13:43:04 CET 2005


Environment:
WinXP SP2 + Python 2.4.2, with SOAPpy-0.11.6.zip, fpconst-0.7.2.zip,
and  PyXML-0.8.4.win32-py2.4.exe installed.

Problem:
I'm reading DiveIntoPython these days. When running code of "Example
12.11. Calling A Web Service Through A WSDL Proxy", I got some errors
as follow. Will you please give me some suggestion?

IDLE 1.1.2's Output:
>>> from SOAPpy import WSDL
>>> wsdlFile = 'http://www.xmethods.net/sd/2001/TemperatureService.wsdl'
>>> server = WSDL.Proxy(wsdlFile)
>>> server.methods.keys()
[u'getTemp']
>>> server.getTemp('90210')

Traceback (most recent call last):
  File "<pyshell#4>", line 1, in -toplevel-
    server.getTemp('90210')
  File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py",
line 453, in __call__
    return self.__r_call(*args, **kw)
  File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py",
line 475, in __r_call
    self.__hd, self.__ma)
  File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py",
line 347, in __call
    config = self.config)
  File "E:\Program Files\Python\Lib\site-packages\SOAPpy\Client.py",
line 187, in call
    r.endheaders()
  File "E:\Program Files\Python\lib\httplib.py", line 795, in
endheaders
    self._send_output()
  File "E:\Program Files\Python\lib\httplib.py", line 676, in
_send_output
    self.send(msg)
  File "E:\Program Files\Python\lib\httplib.py", line 643, in send
    self.connect()
  File "E:\Program Files\Python\lib\httplib.py", line 611, in connect
    socket.SOCK_STREAM):
gaierror: (11001, 'getaddrinfo failed')
>>>




More information about the Python-list mailing list