What is DataContract and ServiceContract?Explain
Answer Posted / pradeeprajasekharan
ServiceContract
Defines the Interface that is exposed through end points
which says what functionality will be available for the
client. So the ServiceContract attribute will be placed in
the interface level. Interface contains the definition of
the available methods through the service.
OperationalContract
Defines the methods under the service.
DataContract
Defines the mapping between CLR datatypes with XSD schema.
The complex datatypes will be serialized and deserialized
according to the DataContact attribute associated.
| Is This Answer Correct ? | 13 Yes | 3 No |
Post New Answer View All Answers
tell me what is service and client in perspective of data communication? : Wcf data services
What is the main advantage of was?
What is ConcurrencyMode in WCF?
what is the difference between ASMX web services and WCF?
What is REST and what is the problem with WCF REST and how it can be resolved?
What are the wcf service endpoints?
Why to use wcf?
What are different bindings supported by wcf?
Elucidate on the various contracts in wcf?
What are WCF contracts?
What is overloading in wcf?
What is the difference between xmlserializer and the datacontractserializer?
In WCF what are duplex contracts?
Tell me what is three major points in wcf? : Wcf data services
What is the "address" property of endpoint in wcf?