Jos Vos wrote: > On Mon, Apr 17, 2006 at 03:30:04AM -0500, Nick Craig-Wood wrote: > >> UTSL ;-) >> >> Look at /usr/lib/python2.4/SimpleXMLRPCServer.py (adjust as per your >> distro) and in particular the definition of the CGIXMLRPCRequestHandler >> class. > > I did this before posting my question, in fact, but I did not look > good enough maybe, as at first sight I thought tghe CGI... class > would be too CGI-specific (it looks for environment variables etc. > given by the HTTP server), but maybe it's good enough.
I don't know exactly what your usage pattern is, but you might be able to use SimpleXMLRPCDispatcher directly e.g. >>> s = SimpleXMLRPCDispatcher() >>> s.register_function(pow) >>> s._marshaled_dispatch('<?xml version="1.0"...) '<?xml version="1.0"... Cheers, Brian -- http://mail.python.org/mailman/listinfo/python-list