- WCF - Exception Handling
- WCF - Security
- WCF - RIA Services
- WCF - Transactions
- WCF - Instance Management
- WCF - Service Binding
- WCF - Consuming WCF Service
- WCF - Windows Service Hosting
- WCF - WAS Hosting
- WCF - Self-Hosting
- WCS - IIS Hosting
- WCF - Hosting WCF Service
- WCF - Creating WCF Service
- WCF - Architecture
- WCF - Developers Tools
- WCF - Versus Web Service
- WCF - Overview
- WCF - Home
WCF Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
WCF - Versus Web Service
There are some major differences that exist between WCF and a Web service which are psted below.
Attributes − WCF service is defined by ServiceContract and OperationContract attributes, whereas a web service is defined by WebService and WebMethod attributes.
Protocols − WCF supports a range of protocols, i.e., HTTP, Named Pipes, TCP, and MSMQ, whereas a web service only supports HTTP protocol.
Hosting Mechanisms − Various activation mechanisms are there for WCF hosting, i.e., IIS (Internet Information Service), WAS (Windows Activation Service), Self-hosting and Windows Service, but a web service is hosted only by IIS.
Services − WCF supports a robust security, trustworthy messaging, transaction and interoperabipty, while a web service only supports security services.
Seriapzer − WCF Supports DataContract seriapzer by employing System.Runtime.Seriapzation, whereas a web service supports XML seriapzer by making use of System.Xml.Seriapzation.
Tools − ServiceMetadata tool (svcutil.exe) is used for cpent generation for a WCF service, while WSDL.EXE tool is used for generating the same for a web service.
Exception Handpng − In WCF, unhandled exceptions are handled in a better way by making use of FaultContract. They do not return to the cpent pke in a web service as SOAP faults.
Hash Table − It is possible to seriapze a Hash Table in WCF, but this is not the case in a web service.
Bindings − WCF supports several types of bindings pke BasicHttpBinding, WSDualHttpBinding, WSHttpBinding, etc., while a web service supports only SOAP or XML.
Multithreading − WCF supports multithreading by using the ServiceBehavior Class, whereas this is not supported in a web service.
Duplex Service Operations − WCF supports duplex service operations apart from supporting one-way and request-response service operations, whereas a web service does not support duplex service operations.