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
What is endpoint in wcf service?
What are the advantages of wcf?
What is contract? What are the types of contract?
Explain how to define a service as rest based service in wcf?
What wcf stands for?
How many types of contract wcf define?
What are the various ways of hosting a wcf service?
Explain data contracts?
What are the different modes of security in WCF?
What is the difference between wcf and wpf?
Plz any one send the sharepoint interview question @ mossdev123@gmail.com
What are the various address format in WCF?
Is the msmqintegrationbinding used the msmq.formatname scheme or the net.msmq scheme?
What are the protocols supported by wcf hosting environment?
Which standard binding could be used for a service that was designed to replace an existing asmx web service?