brian at sweetapp.com
Sun Oct 19 04:23:56 CEST 2003
> I'm having trouble using xmlrpclib. I register a function (or class)
> with the SimpleXMLRPCServer and initiate the server. I then create a
> ServerProxy object and connect to the xml-rpc server. When I call a
> registerd function or class member function I get the follwoing error.
> I've attached the server and client source files.
> File "D:\Python23\lib\xmlrpclib.py", line 742, in close
> raise Fault(**self._stack)
> xmlrpclib.Fault: <Fault 1: 'exceptions.TypeError:cannot marshal None
> unless allo
> w_none is enabled'>
Both of your registered functions implicitly return None. None is not a
valid XML-RPC type (though there is an extension with a NULL type). You
can fix your code by adding "return 1" to the end of your functions.
More information about the Python-list