FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

WCF INTERVIEW QUESTION & ANSWERS

Follow Us
 
6. What is the difference between WCF and Web Services?
  Web services can only be invoked by HTTP. While Services or a WCF component can be invoked by any protocol and any transport type. Second web services are not flexible. However Services are flexible. If you make a new version of the service then you need to just expose a new end. Therefore services are agile and which is a very practical approach looking at the current business trends.
  Posted by Gaurav Rastogi. (Mar 03, 2014)
 

Web service make a use of http transport protocol with the SOAP message to tranfer the message . Where as with the WCF we can make a use of TCP, MSMQ , HTTP tranport with SOAP to tranfer the message. WCF is more flexible that webservice. In WCF we have the flexibility of versioning in which the client can access the new version of the service without disturbing the older version.where as in web service we don’t have such flexibility.

Your Name Your Email-ID
Your Answer
 
7. What are the different bindings supported by WCF?
 
    WCF includes predefined bindings.
  • Basic Http binding
  • WsHttp binding
  • NetTcp Binding
  • Netnamed pipes binding
  • Net MSMQ binding
  Posted by Gaurav Rastogi. (Mar 03, 2014)
 

basichttpbinding
wsHttpBinding
wsDualHttpBinding - for the duplex (callback) contracts
netTCPBinding
netMSMQBinding -- for message queuing
netNamesPipedBinding.

  Posted by Sadhu Veeranjaneya Swami. (Nov 21, 2013)
 

netPeerTcpBinding
msmqIntegrationBinding

  Posted by Venkateswarlu. (Oct 09, 2013)
 

wsDualHttpBinding
wsFederationBinding.

Your Name Your Email-ID
Your Answer
 
8. Can we have two way communications in MSMQ?
  Yes
  Posted by Gaurav Rastogi. (Mar 03, 2014)
 

Yes, we can have the two way communication in MSMQ in that we have to treat our client as a WCF service.

Your Name Your Email-ID
Your Answer
 
9. What are dead letter queues?
  The main use of queue is that you do not need the client and the server running at one time. Therefore it is possible that a message will lie in queue for long time until the server or client picks it up. But there are scenarios where a message is no use after a certain time.
  Posted by Gaurav Rastogi. (Mar 03, 2014)
 

Suppose in our MSMQ binding the client send the message to the service and the service is not running at that time that message will be queued but if the time in the queued is more longer that the message timestamp is exipred that message will not send back to the client.It will be send to the dead letter queues.

Your Name Your Email-ID
Your Answer
 
10. 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. This we have already covered in the first section. The service comes in to existence when you create the object of Service Host class and the service closes when you call the Close of the Service Host class.
  • Host in application domain or process provided by IIS Server.
  • Host in Application domain and process provided by WAS (Windows Activation Service) Server
  Posted by Gaurav Rastogi. (Mar 03, 2014)
 

We can host our WCF service in the following ways:
1) Windows service
2) IIS
3) WAS - for the non http protocol but host in IIS
4) WPF application
5) windows application

Your Name Your Email-ID
Your Answer