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 contract wcf define?

536


Explain fault contracts?

539


What is wcf api?

520


Could the iis-hosted wcf service make use of http transport security if the iis virtual derectory that contains the service does not support it?

518


Give an example of knowtype.

637






How to Implement security in wcf rest service?

592


What is wcf ipc binding type?

543


explain wcf basic binding type? : Wcf data services

498


Explain how to define a service as rest based service in wcf?

520


What are the three types of transaction manager WCF supports?

541


Explain service contracts?

541


When was wcf introduced?

506


Is MSMQ works in two-way communications in WCF?

554


What is the difference wcf and web services?

511


explain msmq integration binding? : Wcf data services

492