WCF INTERVIEW QUESTION & ANSWERS
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. |
7. | What are the different bindings supported by WCF? |
---|---|
|
Posted by Gaurav Rastogi. (Mar 03, 2014) | |
basichttpbinding |
|
Posted by Sadhu Veeranjaneya Swami. (Nov 21, 2013) | |
netPeerTcpBinding |
|
Posted by Venkateswarlu. (Oct 09, 2013) | |
wsDualHttpBinding |
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. |
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. |
10. | what are the various ways of hosting a WCF service? |
---|---|
|
Posted by Gaurav Rastogi. (Mar 03, 2014) | |
We can host our WCF service in the following ways: |