By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,827 Members | 2,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,827 IT Pros & Developers. It's quick & easy.

Can any one tell me when to use Soap formatter and when to use Xml formatter?

P: 4
I m confusing about when to use Soap and when to use Xml Fornatter in .net. Can any one help me to solve this question??
Thank you..
Jan 7 '10 #1

✓ answered by Frinavale

A XFormatter class functionality for formatting serialized objects.

The SoapFormatter: serializes and deserializes an object, or an entire graph of connected objects, in SOAP format.

Apparently there isn't much of a description for the XMLFormatter. I would assume that the XMLFormatter serializes and deserializes XML objects and documents.

The XMLSerializer class serializes and deserializes objects into and from XML documents. The XmlSerializer enables you to control how objects are encoded into XML.

Even though SOAP is XML based, it is probably best to use the SoapFormatter when dealing with SOAP instead of using the XMLFormatter.

-Frinny

Share this Question
Share on Google+
2 Replies


Frinavale
Expert Mod 5K+
P: 9,731
A XFormatter class functionality for formatting serialized objects.

The SoapFormatter: serializes and deserializes an object, or an entire graph of connected objects, in SOAP format.

Apparently there isn't much of a description for the XMLFormatter. I would assume that the XMLFormatter serializes and deserializes XML objects and documents.

The XMLSerializer class serializes and deserializes objects into and from XML documents. The XmlSerializer enables you to control how objects are encoded into XML.

Even though SOAP is XML based, it is probably best to use the SoapFormatter when dealing with SOAP instead of using the XMLFormatter.

-Frinny
Jan 7 '10 #2

P: 4
thanxxxxxxxx. U solved my confusion........
Jan 8 '10 #3

Post your reply

Sign in to post your reply or Sign up for a free account.