473,396 Members | 1,914 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.

Question: Serialization & Versioning on Client/Server

I have an application that runs on a web server that sends data to
clients over a TCP socket. The data comes from a class that has been
serialized. The class exists in a library (a DLL). The customer
receives this serialized data with a client application I wrote. They
also have the same DLL, so that when the data received is
deserialized, it will be deserialized into the same type of class that
was used on the server.

I have a problem tyring to figure out how to handle updates with the
DLL and making sure that the deserialization works. For instance,
let's say I now add a new property to the class on the server. If the
customer gets a copy of the new DLL and provided I send serialized
data that matches what the client expects, everything is well.

But in a not so perfect world, some customers may choose not to
upgrade. So I now need to send serialized data in such a way that one
client who uses the old DLL can receive the data formatted as it was
originally while another client using the newer DLL can also use the
newer data.

The question is, on the server side, how do I make a distinction
between the two clients? And on the client side, how can I guarantee
that the client will use the correct version of data?

Unfortunately, if there is any mismatch in the number of number of
properties or methods between what is being deserialized and what the
class expects, the deserialization will not succeed.

By the way, I'm using the SOAP formatter for serialization rather than
the binary formatter. I've noticed that the binary formatter stores
the version of the expected DLL whereas the SOAP version doesn't. If I
were to use the binary formatter, I might be able to use the version
information to make destinctions. On the other hand, I can still use
the SOAP formatter and still store the version information because I
don't send the SOAP as-is. I package the SOAP inside another XML
structure, which can contain anything I want.

Your suggestions are welcomed.

Johann Blake
Nov 15 '05 #1
0 937

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Ken Durden | last post by:
I'm working on a client-server application where the client is controlling two devices (aka servers) which both implement the same interface contract. We have a set of about 4 assemblies which...
3
by: Marshal | last post by:
This is a definite and reproduceable bug in Web Services, Visual Studio 2003. Here is a simple example. Create a web service... // this represents an original version of an object class...
0
by: psy000 | last post by:
Hi, I have a C# web service client that talks to a JAVA application sever. I use AXIS to generate the WSDL file, use wsdl.exe to generate proxy stub c# code. When I try to use c# client connect...
0
by: Johann Blake | last post by:
I have an application that runs on a web server that sends data to clients over a TCP socket. The data comes from a class that has been serialized. The class exists in a library (a DLL). The...
0
by: Martin | last post by:
Hey, I am currently writing a WebService ("Server") and a WinApp ("Client") so that a user can use a third program through the web. To do that the client needs a table from a database. Here...
3
by: Skip | last post by:
Hi, I'm new to .NET remoting and there's something I'm having real trouble with. Basically, I'd like to create a component that can act as a server and as a client (can send messages and receive...
3
by: Steve | last post by:
I've been following a couple remoting tutorials on the web, they are all pretty much the same. I've got my different applications built(client, server and remote object (dll)) The client is...
3
by: Daniel | last post by:
Hi i want to be able to check if information read that came from over a socket is serilisable, if it isnt i want to handle it differently. Basically i am trying to make a generic receivedata...
4
by: =?Utf-8?B?U2NvdHQ=?= | last post by:
I have seen many articles describing why versioning web services are important. I have a scenario that I would like to propose to seek a solution. I have a publicly consumable web service. Two...
0
by: Rich | last post by:
I have a simple test case using a remote object. When I run with server and client on the same PC everything works fine. When I run the client on another PC, the remote object works, but when the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.