mirroring object attributes using xml-rpc

skip at pobox.com skip at pobox.com
Thu Jul 6 11:33:36 EDT 2006


    sashang> Then the client code can get the value of i like this:
    sashang> c = xmlrpclib.ServerProxy("address")
    sashang> c.geti()

    sashang> but why can't I get the value of i like this?

    sashang> c.i

"RPC" stands for "Remote Procedure Call".  You're looking for a remote
object access protocol.  As Irmen pointed out, Pyro is one such beast,
though it is limited to use with Python.  If you need something that's more
language-independent, you might look at SOAP.  Personally, XMLRPC has been
sufficient for me for several years.

Skip



More information about the Python-list mailing list