Google Groups unterstützt keine neuen Usenet-Beiträge oder ‑Abos mehr. Bisherige Inhalte sind weiterhin sichtbar.

Python XML-RPC server as CGI

2 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Víctor R. Ruiz

ungelesen,
23.02.2002, 11:54:3823.02.02
an

Hello:

I'm using Python 2.1 I want to run an xmlrpc server as a python CGI
script, executed via Apache: it is possible with the Python 2.1's standard
xmlrpc library?

Thanks,

--
Víctor R. Ruiz
http://www.infoastro.com

Brian Quinlan

ungelesen,
23.02.2002, 12:38:5823.02.02
an
Victor wrote:
> Hello:
>
> I'm using Python 2.1 I want to run an xmlrpc server as a python CGI
> script, executed via Apache: it is possible with the Python 2.1's
standard
> xmlrpc library?

Python 2.1 didn't include an XML-RPC library, so I'm presuming that you
are referring to the PythonWare module xmlrpclib?

I've placed an enhanced version of the Python 2.2 XML-RPC server library
on my website:
http://www.sweetapp.com/xmlrpc/


The documentation for the 2.2 version is the most up to date:
http://www.python.org/doc/current/lib/module-SimpleXMLRPCServer.html

Here is a simple CGI usage example:

from SimpleXMLRPCServer import CGIXMLRPCRequestHandler

server = CGIXMLRPCRequestHandler()
server.register_function(pow)
server.handle_request()

Cheers,
Brian


0 neue Nachrichten