Both WEB service and WCF technologies provide communication between the application and the application. Both are based on SOAP messages communicating between the client and the server, because the SOAP message is an XML format, so the data is transmitted in XML format. Each time a client requests data from the server, the client's service proxy translates the request message into a SOAP message for transmission, and the server turns the data into a SOAP message transmission when the data is returned. The services provided by both can be described using WSDL (Web Service Description Language). For clients, they can generate a proxy class for the service by adding a reference, requesting a WSDL document from the server, and then generating the service proxy based on the WSDL document (provided the service side allows the client to obtain the WSDL document, which can be configured in Webconfig).
In general, WCF can be seen as an upgrade to a Web service, so it should not be the difference between the two, but rather the advanced nature of WCF compared to Web service. Its advanced nature has two points: (1) The Network transport protocol supported by WCF is significantly more than the network protocol supported by web SERVICE,WCF including HTTP, TCP, Named Pipes, MSMQ and so on, while Web service only supports HTTP protocol; (2) WCF Service Host is more important than web Service-rich, WCF programs can be hosted in IIS, was, console applications, Windows client applications, Windows services, and so on, while Web service can only be hosted on IIS.
For now, as a data service, the use of Web services has been gradually superseded by WCF, because the functionality that Web service can implement is basically achievable, and WCF provides more selectivity on network protocols and service hosts.
Web Service && WCF Learning Summary