471,330 Members | 1,871 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

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

Jun 14 '07 #1
5 933
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
Jun 14 '07 #2
On 6/14/07, Tobiah <to**@tobiah.orgwrote:
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.
si***@brunningonline.net
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues
Jun 15 '07 #3
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.

Jun 15 '07 #4
Bruno Desthuilliers <br********************@wtf.websiteburo.oops.comwr ites:
Then I'd second Simon's suggestion to use JSON.
Any idea if a C implementation is available? I mean Python-callable.
Jun 15 '07 #5
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.
si***@brunningonline.net
http://www.brunningonline.net/simon/blog/
GTalk: simon.brunning | MSN: small_values | Yahoo: smallvalues
Jun 15 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

37 posts views Thread by Ben | last post: by
1 post views Thread by andrewcw | last post: by
6 posts views Thread by andrewcw | last post: by
4 posts views Thread by mdb | last post: by
1 post views Thread by elziko | last post: by
7 posts views Thread by Joe | last post: by
11 posts views Thread by William | last post: by
5 posts views Thread by Nikola Skoric | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.