Which contract is used in WCF Service for Exceptions
-
Message Contract
-
Exception Contract
-
Fault COntract
-
None of the above
C
Correct answer
Explanation
In Windows Communication Foundation (WCF), the Fault Contract (FaultContractAttribute) is used to declare which SOAP faults a service operation can throw. Message Contracts define headers/body structure, and Exception Contract is not a WCF contract.