473,324 Members | 2,535 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,324 software developers and data experts.

XmlSerialization vs SoapSerialization

Hi All,
What is advantages/disadvantages of using XmlSerialization vs SoapSerialization?
I'm specifically interested in "stability": I mean, I serialized something in a file and have to be sure
that in a year, when the .Net version will be different, I still can deserialize my objects from this file.

Thanks in advance

Boris
Nov 12 '05 #1
3 3071
Hi Boris,

If you want full Type fidelity, and the "stability" that you are talking
about you should use Soap Serialization. Soap Serialization preserves the
full type information.

XML Serialization is intended more for interoperability with other Operating
Systems, and does not preserve all type information.

Regards,

Bennie Haelen

"Boris Leykekhman" <an*******@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
Hi All,
What is advantages/disadvantages of using XmlSerialization vs SoapSerialization? I'm specifically interested in "stability": I mean, I serialized something in a file and have to be sure that in a year, when the .Net version will be different, I still can deserialize my objects from this file.
Thanks in advance

Boris

Nov 12 '05 #2
Hi Boris,

If you want full Type fidelity, and the "stability" that you are talking
about you should use Soap Serialization. Soap Serialization preserves the
full type information.

XML Serialization is intended more for interoperability with other Operating
Systems, and does not preserve all type information.

Regards,

Bennie Haelen

"Boris Leykekhman" <an*******@discussions.microsoft.com> wrote in message
news:85**********************************@microsof t.com...
Hi All,
What is advantages/disadvantages of using XmlSerialization vs SoapSerialization? I'm specifically interested in "stability": I mean, I serialized something in a file and have to be sure that in a year, when the .Net version will be different, I still can deserialize my objects from this file.
Thanks in advance

Boris

Nov 12 '05 #3
Hi Bennie,
If you want full Type fidelity, and the "stability" ...


The "stabiliyty" probably is not a good word, so let's use the word "compatibility".

This is exactly the place, where I was prepared to give up Type fidelity of SOAP serialization
in favor of "compatibility" of XML Serialization. My thought was, that because of less "intimacy" in
only public members serialization with XML, I would gain in "compatibility". And the question is: is it really so?
What is the level of compatibility of SOAP serialization? In fact, SOAP serialization is a binary serialization
with SOAP formatting, so I would think that it provades NO "compatibility" at all or very weak "compatibility".
But I'm not sure...

Boris
Nov 12 '05 #4

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

Similar topics

0
by: Omkar Singh | last post by:
When I serialize my class using XmlSerialization.serialize, it make a lot of reference in the output document. Is there any way to off XmlSerialiation class to make references.
0
by: Omkar Singh | last post by:
I am using XmlSerialization and XmlDeserialization for making soap Body part. Then I am making sopa-header and other part of soap envelope manually. At last joining all part to get complete soap...
0
by: Omkar Singh | last post by:
I have a problem while using XmlSerialization. XmlSerializaion creates a lot of 'href' and namespaces while serializing a complex object. Can we control serialization to stop href and namespaces. ...
2
by: STom | last post by:
I have just started reading up on XMLSerialization and still do not understand the practical use of this technology. For example, if I have to know the class type on the client and on the web...
0
by: A programmer desperatly needing help! | last post by:
I use the xmlserialization on asp.net pages and on previous machines it never gave a problem. But now i somethings get a: Timed out waiting for a program to execute. The command being executed was...
4
by: pfrisbie | last post by:
I am developing a Web Services interface with C# and our partner is using Java (Axis 1.1). They require me to include xsi:types in the SOAP Messages I send them. For example: <Partner...
3
by: LW | last post by:
Hi! I am getting the following error message for my fairly simple web service. I have classes and have two DataSets that reference the same classes. The error is: The XML element named...
1
by: Frank | last post by:
Hi, Let's say I have a file named myFile.xml Within that file I have blocks of data which I'd like to add at different times during the day. e.g. <LogEntry>
0
by: IanWright | last post by:
This is a little bit more of an advanced topic for serialization. For those who don't know what XML serialization is, then this probably isn't for you just yet. For those that do, you may have come...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.