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


Please Help Members By Posting Answers For Below Questions

How many types of transport schemas are there in wcf?

433


What is an endpoint in WCF service?

578


do you know what is address in wcf and how many types of transport schemas are there in wcf? : Wcf data services

410


What message exchange patterns (meps) supported by wcf? Explain each of them briefly.

444


Define the term policy binding?

464






What is callback mode in wcf? Explain.

461


How to set the instancing mode in wcf service?

491


Which are the various programming approaches for wcf?

438


What is contract? What are the types of contract?

461


What are the transport schemas supported by wcf?

478


What are the duplex contracts in wcf?

454


explain what is the difference wcf and web services? : Wcf data services

457


What is wcf basic binding type?

434


What is the use of the was(windows activation service) compared to other hosting?

409


What is address in wcf?

462