What are the types of Data Contracts in WCF?



What are the types of Data Contracts in WCF?..

Answer / Ajay Dangi

WCF provides several types of data contracts to define the structure and serialization rules for service messages:n
1. Object Serializer: Automatically generates a data contract from a .NET class.
2. Known Type: Allows you to explicitly specify the data contract classes that should be used for serialization.
3. Data Contract Class Library (DCL): A separate assembly containing data contracts, which can be referenced by services and clients.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More WCF Interview Questions

Why do we use wcf?

1 Answers  


explain what is transport and message reliability? : Wcf data services

1 Answers  


How to generate proxy for WCF Services?

1 Answers  


What is REST and what is the problem with WCF REST and how it can be resolved?

1 Answers  


What are different elements of wcf srevices client configuration file?

0 Answers  


WCF:Do we have to change the maxReceivedMessageSize parameter to use streaming?

1 Answers  


WCF:What hosting functionality is unique for the Vista OS?

1 Answers  


What is data contract equivalence?

1 Answers  


Which standard binding could be used for a service that was designed to replace an existing asmx web service?

1 Answers  


Can you define more than one endpoints in a service model?

1 Answers  


Explain wcf contracts?

1 Answers  


How to set the timeout property for the wcf service client call?

1 Answers  


Categories