Monday, 7 January 2013

Explain WCF contracts? | WCF

   Contracts in Windows Communication Foundation provide the interoperability they need to communicate with the client. It is through contracts that clients and services agree as to the types of operations and structures they will use during the period that they are communicating back and forth. Without contracts, no work would be accomplished because no agreement would happen.
Three basic contracts are used to define a Windows Communication Foundation service :
Service Contract : Defines the methods of a service, that is, what operations are available on the endpoint to the client.
Data Contract : Defines the data types used by the available service methods.
Message Contract : Provides the ability to control the message headers during the creation of a message.
 

No comments: