WCF Interview questions

Total available count: 25
Subject - Microsoft Technologies
Subsubject - WCF

Different types of contracts in WCF?

In WCF, all services expose contracts. The contract is a platform-neutral and standard way of describing what the service does. WCF defines four types of contracts,
  1. Service contract: Describe which operations the client can perform on the service.
  2. Data contract: Define which data types are passed to and from the service. WCF defines implicit contracts for built-in types such as int and string, but we can easily define explicit opt-in data contracts for custom types.
  3. Fault contract: Define which errors are raised by the service, and how the service handles and propagates errors to its clients.
  4. Message contract: Allow the service to interact directly with messages. Message contracts can be typed or untyped, and are useful in interoperability cases and when there is an existing message format we have to comply with.

Next 5 interview question(s)

What is address in WCF and how many types of transport schemas are there in WCF?
What are the advantages of hosting WCF service in WAS?
Features of WCF?
Different types of hosting in WCF?
What is .svc file?