Hi,
I have successfully installed the SOAPpy module. The version is 0.11.6
I am trying to run simple test program for server and cliet. The script for server is executing without any error; but the client script is giving me the error as below.
TRACEBACK:
C:\project stuff-programs>python client.py
Traceback (most recent call last):
File "client.py", line 4, in ?
print server.hello()
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__
return self.__r_call(*args, **kw)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call
self.__hd, self.__ma)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 347, in __call
config = self.config)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 187, in call
r.endheaders()
File "C:\Python24\lib\httplib.py", line 798, in endheaders
self._send_output()
File "C:\Python24\lib\httplib.py", line 679, in _send_output
self.send(msg)
File "C:\Python24\lib\httplib.py", line 646, in send
self.connect()
File "C:\Python24\lib\httplib.py", line 630, in connect
raise socket.error, msg
socket.error: (10061, 'Connection refused')
Traceback (most recent call last):
File "client.py", line 4, in ?
print server.hello()
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 453, in __call__
return self.__r_call(*args, **kw)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 475, in __r_call
self.__hd, self.__ma)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 347, in __call
config = self.config)
File "C:\Python24\Lib\site-packages\SOAPpy\Client.py", line 187, in call
r.endheaders()
File "C:\Python24\lib\httplib.py", line 798, in endheaders
self._send_output()
File "C:\Python24\lib\httplib.py", line 679, in _send_output
self.send(msg)
File "C:\Python24\lib\httplib.py", line 646, in send
self.connect()
File "C:\Python24\lib\httplib.py", line 630, in connect
raise socket.error, msg
socket.error: (10061, 'Connection refused')
#server.py
import SOAPpy
def hello():
return "Hello World"
server = SOAP.SOAPServer(("localhost", 23000))
server.registerFunction(hello)
server.serve_forever()
# client.py
import SOAPpy
server = SOAPpy.SOAPProxy("http://localhost:23000/")
print server.hello()
TIA.
Best Regards,
Asrarahmed
--
To HIM you shall return.
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor