XML-RPC server via xinetd

Nick Craig-Wood nick at craig-wood.com
Mon Apr 17 04:30:04 EDT 2006


Jos Vos <jos at xos.nl> wrote:
>  I'm trying to figure out how to implement a XML-RPC server that
>  is called by xinetd i.s.o. listening on a TCP socket itself.
> 
>  I already have implemented a stand-alone XML-RPC server using
>  SimpleXMLRPCServer, but I now want something similar, that is
>  started via xinetd (i.e. reading/writing via stdin/stdout).
> 
>  Any hints or code examples?

UTSL ;-)

Look at /usr/lib/python2.4/SimpleXMLRPCServer.py (adjust as per your
distro) and in particular the definition of the CGIXMLRPCRequestHandler class.

That looks as thought it almost, or maybe completely, does what you
want, ie an XMLRPC subclass which reads from stdin and writes to
stdout.

-- 
Nick Craig-Wood <nick at craig-wood.com> -- http://www.craig-wood.com/nick



More information about the Python-list mailing list