Differentiate between datacontractserializr and xmlserializer?
Answer Posted / sriyans sharma
DataContractSerializer
Is meant to be used for serialization/deserialization of class in WCF service to and from either JSON or XML.
serializes properties and fields.
Is faster than XmlSerializer
Doesn't control how xml is generated. Should not be used when full control on generated XML structure is required
XMLSerializer
XmlSerializer is only for XML serialization
Supports full control over the XML structure
Serializes only public properties
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is overloading in wcf? How to do authentication in wcf?
How many types of contract wcf define?
what are the MEPs available in WCF?
What is wcf ipc binding type?
What is the difference between WCF and ASMX Web Services?
explain msmq integration binding? : Wcf data services
How to define a service as rest based service in wcf?
How you can hosting a WCF service?
what are the main components of WCF?
Explain how does WCF works?
Is it possible for a WCF service to implement Multiple service contracts?
Where you use WSFederationHttpBinding in WCF?
Please explain different modes of security in wcf? Or explain the difference between transport and message level security.
How would you generate a proxy for wcf?
Explain how to define a service as rest based service in wcf?