WCF Interview Question and Answers

1. What are the main components of WCF?
 
    The main components of WCF are
  • Service class
  • Hosting environment
  • End point
 
Your Name Your Email-ID
Your Answer
2. What are the various ways of hosting a WCF service?
 
    There are three major ways to host a WCF service
  • Self hosting the service in his own application domain.
  • Host in application domain or process provided by IIS server.
  • Host in Application domain and process provided by WAS (Windows Activation Service) Server.
 
Your Name Your Email-ID
Your Answer
3. What are the core security features that WCF addresses?
 
    There are four core security features that WCF addresses
  • Confidentiality: This feature ensures that the information does not go in wrong hands when it travels from the sender to the receiver.
  • Integrity: This feature ensures that the receiver of the message gets the same information that the sender sends without any data tampering.
  • Authentication: This feature verifies who the sender is and who the receiver is.
  • Authorization: This feature verifies whether the user is authorized to perform the action they are requesting from the application.
 
Your Name Your Email-ID
Your Answer
4. What is WCF?
  Windows Communication Foundation (WCF) is an SDK for developing and deploying services on Windows. WCF provides a runtime environment for services, enabling you to expose CLR types as services, and to consume other services as CLR types. WCF is a unification technology which unities the following technologies
NET remoting
MSMQ
Web services
COM+.
 
Your Name Your Email-ID
Your Answer
5. What is the difference between WCF and Web Service?
 
    Web Services
  • It Can be accessed only over HTTP
  • It works in stateless environment
    WCF is flexible because its services can be hosted in different types of applications. The following lists several common scenarios for hosting WCF services
  • IIS
  • WAS
  • Self-hosting
  • Managed Windows Service
 
Your Name Your Email-ID
Your Answer
12 Page 1 of 3