Serialization across languages?

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

    #1

    Serialization across languages?

    I want to do SOAP like calls from a device who's libraries
    don't include SOAP. I'm thinking of using simple HTTP posts,
    but I'm going to want to send arrays and hashes.

    First, what do I need to be aware of when sending arbitrary
    data by a POST, and Second, is there a universally supported
    version of what python can do with pickle? I mostly need
    python and PHP, but perl would be nice too.

    Thanks,

    Toby

    --
    Posted via a free Usenet account from http://www.teranews.com

  • =?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?=

    #2
    Re: Serialization across languages?

    First, what do I need to be aware of when sending arbitrary
    data by a POST, and Second, is there a universally supported
    version of what python can do with pickle? I mostly need
    python and PHP, but perl would be nice too.
    You might want to use WDDX. There are WDDX libraries for Python,
    PHP, and Perl.

    Regards,
    Martin

    Comment

    • Simon Brunning

      #3
      Re: Serialization across languages?

      On 6/14/07, Tobiah <toby@tobiah.or gwrote:
      I want to do SOAP like calls from a device who's libraries
      don't include SOAP. I'm thinking of using simple HTTP posts,
      but I'm going to want to send arrays and hashes.
      >
      First, what do I need to be aware of when sending arbitrary
      data by a POST, and Second, is there a universally supported
      version of what python can do with pickle? I mostly need
      python and PHP, but perl would be nice too.
      JSON might be worth a look. There are libraries available for loads of
      languages, and it's fairly human readable to boot.

      --
      Cheers,
      Simon B.
      simon@brunningo nline.net

      GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues

      Comment

      • Bruno Desthuilliers

        #4
        Re: Serialization across languages?

        Tobiah a écrit :
        I want to do SOAP like calls from a device who's libraries
        don't include SOAP. I'm thinking of using simple HTTP posts,
        but I'm going to want to send arrays and hashes.
        Then I'd second Simon's suggestion to use JSON.

        Comment

        • Paul Rubin

          #5
          Re: Serialization across languages?

          Bruno Desthuilliers <bruno.42.desth uilliers@wtf.we bsiteburo.oops. comwrites:
          Then I'd second Simon's suggestion to use JSON.
          Any idea if a C implementation is available? I mean Python-callable.

          Comment

          • Simon Brunning

            #6
            Re: Serialization across languages?

            On 15 Jun 2007 09:02:34 -0700, Paul Rubin
            <"http://phr.cx"@nospam. invalidwrote:
            Any idea if a C implementation is available? I mean Python-callable.
            There's a fairly in-detail comparison of a number of JSON translators
            here: http://tinyurl.com/39zgw4

            Cheers,
            Simon B.
            simon@brunningo nline.net

            GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues

            Comment

            Working...