What is Contract ? What are the types of Contract ?

Answer

It is the agreement between client and service which specifies:

    [ServiceContract] - which services are exposed to the client.
    [OperationContract] - which operations the client can perform on the service.
    [DataContract] – which data types are passed to and from the service.
    [MessageContract] - allow the service to interact directly with messages. Message contracts can be typed or untyped and are useful in interoperability cases when another party has already dictated some explicit (typically proprietary) message format.
    [FaultContract] -which errors are raised by the service and how the service handles andpropagates errors to its clients.

All wcf Questions

Ask your interview questions on wcf

Write Your comment or Questions if you want the answers on wcf from wcf Experts
Name* :
Email Id* :
Mob no* :
Question
Or
Comment* :
 





Disclimer: PCDS.CO.IN not responsible for any content, information, data or any feature of website. If you are using this website then its your own responsibility to understand the content of the website

--------- Tutorials ---