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 the endpoint in WCF and what are the three major points in WCF?
What is transport reliability in wcf?
What are the protocols supported by wcf hosting environment? What are their advantages and disadvantages?
Which standard binding could be used for a service that was designed to replace an existing asmx web service?
WCF:Do the system-provided bindings have the support for the Reliable session and what the binding options are enabled by default?
What is contract? What are the types of contract?
What is the difference between xmlserializer and the datacontractserializer?
Is MSMQ works in two-way communications in WCF?
What is the difference between wcf service and web service?
explain what is the difference wcf and web services? : Wcf data services
How many types of contracts in WCF?
What is an endpoint in WCF service?
Why do we use wcf?
Which protocol is used for platform independent communication?
What is callback mode in wcf? Explain.