Contracts in WCF
What actualy contract stand for in case of WCF ?
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
TulasiPosted Nov 17, 2011, 1:57 AM
In WCF, all services expose contracts. The contract is a platform-neutral and standard way of describing what the service does.
WCF defines four types of contracts.
1. Service contracts : Describe which operations the client can perform on the service.
2. Data contracts : Define which data types are passed to and from the service. WCF defines implicit contracts for built-in types such as int and string, but we can easily define explicit opt-in data contracts for custom types.
3. Fault contracts : Define which errors are raised by the service, and how the service handles and propagates errors to its clients.
4. Message contracts : Allow the service to interact directly with messages. Message contracts can be typed or untyped, and are useful in interoperability cases and when there is an existing message format we have to comply with
Please mark the answer as Accepted if it helps you.
Priya LingePosted Nov 17, 2011, 1:51 AM
Please check below link which includes the Contract in WCF which is as below,
Service Contract
Data Contract
Message Contract
Fault Contract
http://wcftutorial.net/
Hope this will help you.
Thanks.