xmlrcp - how to marshall objects

Discussion in 'Python' started by Jean-Michel Pichavant, Feb 5, 2010.

  1. Deos anyone knows where to find an code sample describing how to
    implement the interface to marshall one object into XMLRPC compliant
    structures ?

    I googled without any success, and what google does not find does not exist.

    Let say I have this very simple class:

    class Point:
    def __init__(self, x, y):
    self.x = x
    self.y = y


    I've looked into xmlrpc code, I see 2 options:
    1/ override the Marshaller class of client and server
    2/ looks like the lib is supporting a WRAPPER list system, it uses to
    Marshall Datetime & Binary object. Can it be possible to add its own
    class (could require to emplement the 'encode' method)

    I sense I will spend much more time than required unless someone is
    pointing me in the right direction.

    JM
     
    Jean-Michel Pichavant, Feb 5, 2010
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Sergio Rua

    xmlrcp register classes

    Sergio Rua, Sep 5, 2005, in forum: Python
    Replies:
    2
    Views:
    596
    Sergio Rua
    Sep 5, 2005
  2. 7stud
    Replies:
    11
    Views:
    1,054
    Dennis Lee Bieber
    Mar 20, 2007
  3. George2

    marshall interface needed?

    George2, Apr 5, 2008, in forum: C Programming
    Replies:
    0
    Views:
    451
    George2
    Apr 5, 2008
  4. sai krishna
    Replies:
    0
    Views:
    1,960
    sai krishna
    Oct 24, 2008
  5. Sam Roberts
    Replies:
    6
    Views:
    302
    Sam Roberts
    Dec 6, 2003
  6. S. Robert James

    Marshall and Modules

    S. Robert James, Dec 11, 2006, in forum: Ruby
    Replies:
    1
    Views:
    165
    Eric Hodel
    Dec 11, 2006
  7. Aaron Smith

    insert marshall'd data into mysql

    Aaron Smith, Jun 25, 2007, in forum: Ruby
    Replies:
    4
    Views:
    291
    Aaron Smith
    Jun 25, 2007
  8. Lex Williams

    possible simple marshall error

    Lex Williams, Aug 21, 2008, in forum: Ruby
    Replies:
    9
    Views:
    205
    Michael Libby
    Aug 21, 2008
Loading...