Integrating PHP & Python through a light-weight rpc mechanism?

Skip Montanaro skip at pobox.com
Fri Jun 6 20:12:14 EDT 2003


    Iwan> XML based mechanisms (SOAP, XML-RPC, ReST) are more easy but offer
    Iwan> their own set of challenges (not the least the overhead of
    Iwan> XML). You would expect that there would be some light-weight RPC
    Iwan> protocol available, with the simplicity of XML-RPC and the
    Iwan> compactness of a binary protocol. 

I doinked around with an RPC protocol based on XMLRPC awhile ago which used
the pickle binary format as the serialization mechanism instead of XML.  You
could try something like that.  You're welcome to the code.  You'll probably
be exchanging basic data types (that is, not class instances), so marshal
might also be an option, and you'd have the benefit that you could adapt the
existing marshal module's code for PHP.

Skip





More information about the Python-list mailing list