Large Data with SOAP

Man MAN5940 at terra.es
Wed Mar 10 16:37:02 CET 2004


Hello, I have a problem with SOAPpy and large data,

ex:

********** SOAP server***********
def SOAPservice(self):
    objListReturn = []
    for i in range(2000):
        objListReturn.append(['user','passwrod','xxxx'])

    return objListReturn

server = SOAPpy.SOAPServer(("localhost", 8080))
server.registerFunction(SOAPservice)
server.serve_forever()

********* Client ******************

import SOAPpy
server = SOAP.SOAPProxy("http://localhost:8080/")
print server.SOAPservice()


*********** Result ****************
Traceback (most recent call last):
  File "c:\python23\lib\SocketServer.py", line 222,
    self.process_request(request, client_address)
  File "c:\python23\lib\SocketServer.py", line 241,
    self.finish_request(request, client_address)
  File "c:\python23\lib\SocketServer.py", line 254,
    self.RequestHandlerClass(request, client_addres
  File "c:\python23\lib\SocketServer.py", line 521,
    self.handle()
  File "c:\python23\lib\BaseHTTPServer.py", line 32
    self.handle_one_request()
  File "c:\python23\lib\BaseHTTPServer.py", line 31
    method()
  File "c:\python23\Lib\site-packages\SOAPpy\Server
    self.wfile.write(resp)
  File "c:\python23\lib\socket.py", line 254, in wr
    self.flush()
  File "c:\python23\lib\socket.py", line 241, in fl
    self._sock.sendall(buffer)
error: (10053, 'Software caused connection abort')

Can I help me?

Thanks





More information about the Python-list mailing list