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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ajinkya7588
    New Member
    • Jan 2010
    • 4

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

    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..
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    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

    Comment

    • ajinkya7588
      New Member
      • Jan 2010
      • 4

      #3
      thanxxxxxxxx. U solved my confusion...... ..

      Comment

      Working...