Serializer Vs Encoder in WCF

By | June 3, 2012

Object Graph >>——(Serializer)——>> WCF Message >>———(Encoder)——->>Byte Stream

In Windows Communication Foundation, Object graph is rendered to WCF Message by a serializer, while further that WCF Message is tranformed to byte stream by an Encoder so that itcan be transported on wire.WCF provides twoserializers toperform the job of rendering toWCF Message from object graph.

  1. DataContract Serializer
  2. XmlSerializer

Further, in chain of channels, there is an encoder whose job is to encode the Message object to byte stream in a particular concrete syntax. In order to understand details of complete Channel Stack, please follow “Understanding WCF Bindings and Channel Stack“.

You can follow other related Web Development concept Encoding Vs Encryption.

Top 10 Interview Questions and Answers Series:

Category: Uncategorized Tags: ,

About IMRAN ABDUL GHANI

Imran Abdul Ghani is working as Software Developer(Senior) with extensive knowledge in Web development technologies especially C#, ASP.NET, MVC, WCF, Web API, ADO.NET Entity Framework, jQuery etc. He has several years of experience in designing/developing enterprise level applications. He is Microsoft Certified Solution Developer for .NET (MCSD.NET) since 2005. You can reach his blogging at www.webdevelopmenthelp.net, www.topwcftutorials.net, and www.sharepointfordummies.net.