Hi
i had used [ServiceContract] to indicate interface for WCF version 4 and i was removed [ServiceContract] there is nothing to display an error and its working fine .Here my question is why do we use [ServiceContract] and what is the purpose to indicate
Thanks
Loading
Hemant KumarPosted Oct 31, 2011, 4:52 AM
A good place to start looking at service contract design is the standards document published by iDesign (found here). This article contains some additional thoughts to add to these standards.
These ideas have come about because of a desire to achieve service designs that have minimum impact on configuration for both the client and the server. The intention is to design service contracts that will live happily with the default limits defined in WCF. The most common reasons for tweaking the WCF default configuration values are that services are returning data that is too large, or has too many objects in the graph for serialization.
Here are some things to think of when designing service contracts:
http://www.neovolve.com/page/WCF-service-contract-design.aspx