convert to XMLRPC

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michel Perez

    convert to XMLRPC

    Que vola a todos:
    I have an object abstraction layer that allows me to comunicate and
    interact with my DB server without much problems -am thinking in
    possibles contributors.

    In the stdlib xmlrpclib handles this in a common way, but i use a
    customized GatewayHandler that give me the posibility to serialize my
    objects and send them to my clients but my real need is to convert this
    object to XML -or something like it- to send it in a way i can use them
    in every presentation a suggest like GUI, WEB or anything i like.
    There's any thing i can do to convert them.

    Don't worry about the way i handle the result i only need to convert
    them to XML or else.


    --
    Michel Perez )\._.,--....,'``.
    Ulrico Software Group /, _.. \ _\ ;`._ ,.
    Nihil est tam arduo et difficile human `._.-(,_..'--(,_..'`-.;.'
    mens vincat. Séneca. =============== ==============


    ---------------------------------------
    Red Telematica de Salud - Cuba
    CNICM - Infomed
  • =?GB2312?B?0rvK18qr?=

    #2
    Re: convert to XMLRPC

    On Nov 7, 8:22 am, Michel Perez <ops...@infomed .sld.cuwrote:
    Que vola a todos:
     I have an object abstraction layer that allows me to comunicate and
    interact with my DB server without much problems -am thinking in
    possibles contributors.
    >
     In the stdlib xmlrpclib handles this in a common way, but i use a
    customized GatewayHandler that give me the posibility to serialize my
    objects and send them to my clients but my real need is to convert this
    object to XML -or something like it- to send it in a way i can use them
    in every presentation a suggest like GUI, WEB or anything i like.
    There's any thing i can do to convert them.
    >
    Don't worry about the way i handle the result i only need to convert
    them to XML or else.
    >
    --
    Michel Perez                                  )\._.,--....,'``.    
    Ulrico Software Group                        /,   _.. \   _\  ;`._ ,.
    Nihil est tam arduo et difficile human      `._.-(,_..'--(,_..'`-.;.'
    mens vincat.                    Séneca.   =============== ==============
    >
    ---------------------------------------
        Red Telematica de Salud - Cuba
              CNICM - Infomed

    You really should have a look at one of:

    * Google protocol buffer
    * Facebook Thrift
    * ICE

    Comment

    • Stefan Behnel

      #3
      Re: convert to XMLRPC

      Michel Perez wrote:
      [db connection]
      In the stdlib xmlrpclib handles this in a common way, but i use a
      customized GatewayHandler that give me the posibility to serialize my
      objects and send them to my clients
      Doesn't XML-RPC do that for you already? What's the protocol you use for
      client communication?

      but my real need is to convert this
      object to XML -or something like it- to send it in a way i can use them
      in every presentation a suggest like GUI, WEB or anything i like.
      There's any thing i can do to convert them.
      You can recursively copy the attributes of your objects into the E factory of
      lxml, either with generic code, or with specialised code for each (sub-)object.



      There's also a separate implementation for plain ElementTree (the xml.etree
      package) by Fredrik Lundh.

      Stefan

      Comment

      Working...