473,698 Members | 2,097 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XmlSerializatio n vs SoapSerializati on

Hi All,
What is advantages/disadvantages of using XmlSerializatio n vs SoapSerializati on?
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 3096
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 interoperabilit y with other Operating
Systems, and does not preserve all type information.

Regards,

Bennie Haelen

"Boris Leykekhman" <an*******@disc ussions.microso ft.com> wrote in message
news:85******** *************** ***********@mic rosoft.com...
Hi All,
What is advantages/disadvantages of using XmlSerializatio n vs SoapSerializati on? 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 interoperabilit y with other Operating
Systems, and does not preserve all type information.

Regards,

Bennie Haelen

"Boris Leykekhman" <an*******@disc ussions.microso ft.com> wrote in message
news:85******** *************** ***********@mic rosoft.com...
Hi All,
What is advantages/disadvantages of using XmlSerializatio n vs SoapSerializati on? 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 "compatibil ity" 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 "compatibil ity" 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
1333
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
1513
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 packet. Can anyone tell me how can I handle the case of "Any" during serialization and how to de-serialize the soap-packet containg the field the "Any". As for de-serization we have to give the class name which have the field of fix Type.
0
1153
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. Please reply!
2
3450
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 service side, wouldn't it be easier to just use .Net remoting? I envision some point of passing over the XML document but the web service not really knowing about the objects type. Am I way off base with my perceptions?
0
2053
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 "c:\winnt\microsoft.net\framework\v1.1.4322\csc.exe" /noconfig @"C:\DOCUME~1\...\ve3y0f-a.cmdline" error. It happens at random but occurs mostly when calling the XMLserialization multiple time rapidly. While looking at the .out file the error...
4
4006
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 xmlns="urn:partner.xxxxx.com"> <RequestID>239</RequestID> <TimeStamp>2006-03-06T17:10:51.4662331-06:00</TimeStamp> <Subject xmlns:ns1="urn:partnermapping.xxxxxx.com" xsi:type="ns1:PartnerMapping"> <AccountID>98401</AccountID>
3
6984
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 'GetCustNoResponse' from namespace 'http://mydomain/' references a method and a type. Change the method's message name using WebMethodAttribute or change the type's root element using the XmlRootAttribute.
1
3952
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
3959
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 across the problem of serializing an interface, something that you simply can't do using the standard XmlSerialization techniques. This articles looks at how to do that, although it might be a little length. Lets take the following problem: ...
0
8674
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8603
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8895
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7725
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6518
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5860
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4369
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2329
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2001
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.