6. Serialization and Encoding

IN CHAPTER 2, “CONTRACTS,” we discussed serialization by using DataContract serialization to convert CLR types to standards-based XML for transmission between client and service. However, many scenarios exist where DataContract serialization is not sufficient. This includes serialization of existing CLR types that do not support DataContract serialization, legacy Web services, interoperability, code migration (such as .NET Remoting), and data shaping. Data shaping is the process of controlling the serialized XML of a .NET type used for performance optimization and contract-first development. In these situations, it is important to know how to work with the serialization facilities that WCF and the .NET Framework ...

Get Essential Windows Communication Foundation: For .NET Framework 3.5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.