What are the main differences between web service and wcf?

I know that a web service can only be a host in IIS, but wcf can be a host in IIS and both in win service too. but where the actual main strength lies in wcf, for which the developer chooses wcf rather a web service. please explain in detail. thank

+3
source share
3 answers

Windows Communication Foundation (WCF) has an ASP.NET compatibility mode option that allows you to program and configure WCF applications as ASP.NET web services and mimic their behavior.

Improved performance, web services use the XmlSerializer, and WCF uses the DataContractSerializer, which is better in performance compared to the XmlSerializer.

, -, WCF. , /TCP/MSMQ ..

+2

WCF :

  • - ASMX/XML

.NET WCF, .

+2

WCF - . asmx, SOAP http, WCF ( TCP/IP). WCF ( - async vs sync, wcf ..). , wcf, - .net 2.0 asmx . WCF IIS - Win Service, Win Form exe. .

0

Source: https://habr.com/ru/post/1787176/


All Articles