Fiserv Interview Question

What is difference between WCF and web service.

Interview Answer

Anonymous

Aug 8, 2018

1. Web services use XMLSerializer which does not specify which fields or properties of the type are serialized into XML, while WCF uses DataContratSerializer that shows which fields or properties are serialized into XML. That’s why WCF is preferred over web services, as DataContratSerializer performs better than XMLSerializer. 2. Web services support only one protocol- HTTP and HTTPS during communication, but WCF supports more protocols like- HTTP, TCP and MSMQ that can be extended for comprehensive solution, reliable session and transactions. It signifies WCF is more adaptable to work together for variety of software. 3. WCF offers much flexibility as web services can only be hosted in IIS, while WCF can be hosted in IIS, windows activation services, self hosting and Windows services. 4. WCF is excellent for building real-time applications because it’s more reliable, fast and robust as compared to the web services. 5. Web services perform far better than WCF services even when they both execute same actions