Don’t Create REST APIs with WCF REST Services…use Web API Instead

There was time when developers used to create Web Service using the WCF. Their argument was using basicHttpBinding makes a WCF service as a Web Service. Yes that ASMX based web service. I never agree to this argument. Clearly WCF was an evolvement over ASMX Web Service. Now let us talk about purpose of this … Continue reading Don’t Create REST APIs with WCF REST Services…use Web API Instead

Advertisements

Generics in WCF Data Contract

In my WCF training, I often get questions that can we expose a generic type as DataContract in WCF? Yes, WCF allows us to expose the generic types as Data Contract. Let us say we have a generic type Foo. We can apply data contract on the Foo as follows:   We can use Foo<T> … Continue reading Generics in WCF Data Contract