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

do you know what is the address formats of the wcf transport schemas? : Wcf data services

463


Which standard binding could be used for a service that was designed to replace an existing asmx web service?

420


Explain the different ways to host wcf service?

435


how many types of contract does WCF defines?

472


What is the windows communication foundation?

475






Is it possible for a WCF service to implement Multiple service contracts?

507


What is REST and what is the problem with WCF REST and how it can be resolved?

479


What do you understand by the term soap?

450


WCF:Do the system-provided bindings have the support for the Reliable session and what the binding options are enabled by default?

1712


How to generate proxy for WCF Services?

515


What does a windows communication foundation, or wcf, service application use to present exception information to clients by default?

544


What is duplex ws binding?

443


What is the main advantage of was?

431


explain wcf basic binding type? : Wcf data services

429


What is proxy and how to generate proxy for wcf services?

493