Sample code on XML and soap serialization

Serialization is a process by which you can save an object in the form of a file or in a database or in the memory to be used later. Serialization can be done in different ways.

_______________________________________________


_______________________________________________

One is Binary serialization, the other is XML serialization, and the final one is the SOAP serialization. All these types of serialization are supported in .Net.

With the XML serialization you can serialize all the public properties and fields. The private members cannot be serialized. Other types of serialization should be used if you want to serialize the private members.

With this type of serialization only the class that does not implement IDictionary can be serialized. The IsNullable attribute is to be set to true if you want to serialize the Null values. MemoryStream is used if you want to store the object in the memory.

SOAP and Binary serialization can be used to serialize the private fields. If you do not want to serialize an object then you have to use the attribute [NonSerialized]. You can mark the class as serializable with the [Serializable] attribute.

Serializable attribute cannot be inherited from the parent class. Make all the members serialization to serialize a class. Classes that implement IDictionary can be serialized with the SOAP and Binary serialization.

Lot of code samples is available in the internet for serialization and deserialization.

PopTop: Usher's new CD seems like a retread
PopTop: Usher's new CD seems like a retread Updated Aug 30, 2010 06:51PM MDT error: ERROR #6901: XSLT XML Transformer Error: SAXParseException: Expected entity name for reference (, line 2, column 10) Copyright 2010 The Salt Lake Tribune. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.

CRM Application Program Interface aids product integration.
Really Simple Systems CRM API lets CRM users, Web developers, and software providers integrate their applications directly into Really Simple Systems Web-based CRM application. Via this SOAP (Simple Object Access Protocol)-based interface, low-level objects in cloud CRM system can be read, updated, and created using XML data. Records can be retrieved individually, or multiple records can be ...



FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover


 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?