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
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?
What are the transport schemas supported by wcf?
what are the main components of WCF?
What is the use of is required property in data contracts?
What hosting functionality is unique for the vista os?
What is the difference between wcf and wpf?
do you know where we can host wcf services? : Wcf data services
Which are the 3 types of transactions manager wcf supports?
In wcf which bindings supports the reliable session?
Explain about msmq integration binding?
What do you mean by client?
What are the three types of transaction manager WCF supports?
What is .net 3.0?
List out what are the different isolation levels provided in WCF?
What is address header in wcf?