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
How many types of transport schemas are there in wcf?
What is an endpoint in WCF service?
do you know what is address in wcf and how many types of transport schemas are there in wcf? : Wcf data services
What message exchange patterns (meps) supported by wcf? Explain each of them briefly.
Define the term policy binding?
What is callback mode in wcf? Explain.
How to set the instancing mode in wcf service?
Which are the various programming approaches for wcf?
What is contract? What are the types of contract?
What are the transport schemas supported by wcf?
What are the duplex contracts in wcf?
explain what is the difference wcf and web services? : Wcf data services
What is wcf basic binding type?
What is the use of the was(windows activation service) compared to other hosting?
What is address in wcf?