Interview Tips Interview Tips, Interview Questions and Answers

15May/100

.NET Object Serialization – Difference between the SoapFormatter and the XmlSerializer

What is the difference between the SoapFormatter and the XmlSerializer?

SoapFormatter

SOAP formatter will actually take the field values of an object and store all of that information in the stream passed.

SoapFormatter is better to serialize arbitrary data

XmlSerializer

XML Serialization would just serialize the public properties of an object.

The XML Serializer is used typically for serializing simple types across web services

xmlserializer is better, more flexible and faster

21Apr/100

.NET interview: What is the difference between the SoapFormatter and the XmlSerializer

SoapFormatter

SOAP formatter will actually take the field values of an object and store all of that information in the stream passed.

SoapFormatter is better to serialize arbitrary data

XmlSerializer

XML Serialization would just serialize the public properties of an object.

The XML Serializer is used typically for serializing simple types across web services

xmlserializer is better, more flexible and faster