.NET WCF(Windows Communication Foundation) interview questions: - Distinguish between Web Services and Remoting | WCF and Web servicesDistinguishing between different technologies is always the favorite questions for the interviewer. So here we have the following.
Remoting works only when both the ends i.e. server and client are in .NET technologies. Web services are useful when the client is not .NET like JAVA etc.
Difference between WCF and Web services
- WCF services can be hosted in multiple protocols like HTTP, TCP etc. Web services can only be hosted on Http protocol.
- WCF has COM+ so you can call two different WCF services in a transaction, we cannot call two different web services in one transaction.
- WCF integrates with MSMQ easily, but for web services we will need to write code to communicate with the MSMQ pool.
WCF = Web services + Remoting + MSMQ + COM+
Web service = WCF – (Remoting + MSMQ + COM+ )
Also click and see the following .NET WCF(Windows Communication Foundation) interview questions video on endpoints, address, contracts and bindings: -