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

We have already 2 hostings iis and self hosting. There is another hosting ie was hosting. What is the use of the was(windows activation service) compared to other hosting?

437


What are the transport schemas supported by wcf?

484


what are the main components of WCF?

480


What is the use of is required property in data contracts?

459


What hosting functionality is unique for the vista os?

413






What is the difference between wcf and wpf?

464


do you know where we can host wcf services? : Wcf data services

444


Which are the 3 types of transactions manager wcf supports?

468


In wcf which bindings supports the reliable session?

453


Explain about msmq integration binding?

457


What do you mean by client?

452


What are the three types of transaction manager WCF supports?

465


What is .net 3.0?

444


List out what are the different isolation levels provided in WCF?

458


What is address header in wcf?

620