Dot Net For All

WCF Contract and Terminologies with Examples

Before starting the series on the WCF services, I want to discuss the differences between WCF contract which include Service contract, data contract and Operation contract. Apart from this other basic WCF terminologies which we should be aware of with C# code examples.

WCF Contract

Operation Contract

Service Contract

 Data Contract

    [DataContract]
    public class PersonData
    {
        [DataMember]
        public int Name { get; set; }
    }

What is a service?

What is a service proxy ?

To access the services and for hiding the complexities of the services from the client we put a layer between Client and service and this layer is known as Service proxies.

This is the layer that extract all the low level communication that is necessary to establish a connection with the service layer which is on another machine and doing hand shaking and taking care of security , doing serialization and deserialization. Client only needs to know about certain operation.

In my next article I will develop a WCF service project using C# by using all the concepts which I have discussed here in this article.

Top career enhancing courses you can't miss

My Learning Resource

Excel your system design interview