473,396 Members | 2,109 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 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 991
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
by: Ben | last post by:
Hi, there. Recently I was working on a problem where we want to save generic closures in a data structure (a vector). The closure should work for any data type and any method with pre-defined...
1
by: andrewcw | last post by:
There is an error in XML document (1, 2). I used XML spy to create the XML and XSD. When I asked to have the XML validated it said it was OK. I used the .net SDK to generate the class. I have...
4
by: hs | last post by:
Hi I am serializing a dataset using a binary formatter as follows: IFormatter formater = new BinaryFormatter(); formatter.Serialize(stream, ds); // ds=DataSet, stream=MemoryStream .... DataSet...
6
by: andrewcw | last post by:
I have an object that serializes back and forth. I would like to have some objects not serialize ..and when I read that info back into the class, have this item be null ( or something like it ). ...
4
by: mdb | last post by:
I have a class (very simple int type data, as shown below) that I have serialized to disk. In my next version of the program, I have added some variables to that class. I'm expecting that this...
27
by: Codemonkey | last post by:
Heya All, Sorry, but I think it's about time for a monkey-ramble. I've just had enough of trying to serialize even simple objects with VB. A simple task you may think - stick the...
1
by: elziko | last post by:
My intention is to store an array of singles inside a DataTable so that it can me peristed somehow, maybe XML file, maybe Access/SQL Server I don't know yet so I'm just saving it as an XML file for...
7
by: Joe | last post by:
I've tracked the performance issue down to a single class. This class derives from CollectionBase and stores a basic value type such as string, int, double, etc... I also store the type itself...
11
by: William | last post by:
I'm looking for an example that would show how to serialize a c++ object at it's simplest w/o using any other api's. I have a class that I want to serialize and then pass to my obj-c class so I can...
5
by: Nikola Skoric | last post by:
I ran in Mono a program developed on .NET Framework 2.0 and it ran OK until I tried to desirialize a object. There the program died abruptly dumping this: System.ArgumentOutOfRangeException:...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.