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 many types of contract wcf define?
Explain fault contracts?
What is wcf api?
Could the iis-hosted wcf service make use of http transport security if the iis virtual derectory that contains the service does not support it?
Give an example of knowtype.
How to Implement security in wcf rest service?
What is wcf ipc binding type?
explain wcf basic binding type? : Wcf data services
Explain how to define a service as rest based service in wcf?
What are the three types of transaction manager WCF supports?
Explain service contracts?
When was wcf introduced?
Is MSMQ works in two-way communications in WCF?
What is the difference wcf and web services?
explain msmq integration binding? : Wcf data services