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
How datacontractserializer different from xmlserializer?
How can we host wcf service?
What is fault contracts in wcf?
Explain data contracts?
What do you understand by the term soap?
What are the types of bindings in wcf?
Give an example of knowtype.
What is extension of WCF Service?
What are the Advantages of hosting wcf in iis?
what are the main components of WCF?
Why to use wcf?
How to deal with operation overloading while exposing the wcf services?
What are the transport schemes supported by wcf? Give example of address for each scheme.
Define data contracts?
What is ConcurrencyMode in WCF?