Generalize Serialization
2 posts in topic
Flat View  Flat View

Posted By:   Shahmil_Merchant
Posted On:   Thursday, November 14, 2002 04:33 PM


I have a a client and server application where I am sending objects between them.Hence on the objects i have implemented the serialization interface.Is there a way by which i could do serialization on one side (say client) by some way so that I could send my serialized information to say a server implemented in C and the server would be able to understand?.


Re: Generalize Serialization

Posted By:   d_d  
Posted On:   Friday, November 15, 2002 12:02 PM

I recommend you to take a look at SOAP prototcol which basically does exactly what you want.

There are many SOAP implementations, for the Java part you may use the opensource product oferred by Apache (Apache SOAP or AXIS). For the C part you may write your own implementation based on SOAP specification or maybe you'll find something available as opensource.

These implementation will do the serialization / deserialization process for you (based on XML), the only thing you need is to understand the SOAP technology and the API.

Please see:



Re: Generalize Serialization

Posted By:   Lasse_Koskela  
Posted On:   Thursday, November 14, 2002 11:32 PM

Well, Java's serialization doesn't work with C code, so you have to go for something more universal. A common solution is XML.

You could pass XML documents describing the objects' state and create applicable object instances from that information.

Take a look at data-binding tutorials around the net. JavaWorld has some, I think.

About | Sitemap | Contact