Category Archives: Uncategorized

Serializer Vs Encoder in WCF

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. DataContract Serializer XmlSerializer… Read More »

WCF Service – Bindings default security

When we talk about security in Windows Communication Foundation, Itcan be at two different levels i.e. Transport Level Security Message Level Security Different WCF bindings have security defaults as follows: 1. BasicHttpBinding No Security Interopable with ASMX Web Services 2. WsHttpBinding Message Level Security SOAP Messages are encrypted 3. NetTcpBinding Transport Level Security Packets are encrypted… Read More »

.NET Exceptions Vs WCF Faults

Exception is a .NET mechanism used to communicate problems encountered during the execution of a program. Various .NET languages allows us to throw, catch/handle or possibly ignore exceptions so that it can be further propagated up to the call stack. C# sample code for handling exception in .NET applications below explains it as:  int x = 0;  int result… Read More »

WCF Service – What is a KnownType?

In Windows Communication Foundation, a KnownType is the acceptable derived class for a given Data Contract. Using WCF Data Contract Known Types by Example For the purpose of understanding in this WCF Tutorial, lets take an example. Consider the following Data Contract classes having inheritance relationship as follows:    [DataContract]    public class UserAccount {}… Read More »