WCF Interview Question and Answers

6. What are the different bindings supported by WCF??
 
  • BasicHttpBinding
  • WsHttpBinding
  • NetTcpBinding
  • NetNamedPipesBinding
  • NetMsmqBinding
 
Your Name Your Email-ID
Your Answer
7. What was the code name for WCF?
  The code name of WCF was Indigo .
 
Your Name Your Email-ID
Your Answer
8. What are contracts in WCF?
 
    The main components of WCF are
  • ServiceContract - This attribute is used to define the Interface.
  • OperationContract - This attribute is used to define the method inside Interface.
  • Data contracts 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.
  • Fault contracts Define which errors are raised by the service, and how the service handles and propagates errors to its clients.
  • Message contracts 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.
 
Your Name Your Email-ID
Your Answer
9. Where we can host WCF services?
  Every WCF services must be hosted somewhere. There are three ways of hosting WCF services. They are 1. IIS 2. Self Hosting 3. WAS (Windows Activation Service)
 
Your Name Your Email-ID
Your Answer
10. What is service and client in perspective of data communication?
  A service is a unit of functionality exposed to the world.
The client of a service is merely the party consuming the service.
 
Your Name Your Email-ID
Your Answer
12 Page 2 of 3