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
do you know what is the address formats of the wcf transport schemas? : Wcf data services
Which standard binding could be used for a service that was designed to replace an existing asmx web service?
Explain the different ways to host wcf service?
how many types of contract does WCF defines?
What is the windows communication foundation?
Is it possible for a WCF service to implement Multiple service contracts?
What is REST and what is the problem with WCF REST and how it can be resolved?
What do you understand by the term soap?
WCF:Do the system-provided bindings have the support for the Reliable session and what the binding options are enabled by default?
How to generate proxy for WCF Services?
What does a windows communication foundation, or wcf, service application use to present exception information to clients by default?
What is duplex ws binding?
What is the main advantage of was?
explain wcf basic binding type? : Wcf data services
What is proxy and how to generate proxy for wcf services?