The only difference I know from visual studio point of view,for adding WCF service you have to take service reference and for web service you have to take web reference.
Thanks
The WCF Web Service Reference tool is a Visual Studio connected service extension that lets you connect your . NET 5+, . NET Core, or ASP.NET Core project to a web service.
A Web reference enables a project to consume one or more XML Web services. Use the Add Web Reference Dialog Box to search for Web services locally, on a local area network, or on the Internet. After adding a Web reference to your current project, you can call any methods exposed by the Web service.
To add a Web Reference You can also open the Add Web Reference dialog box in the Solution Explorer pane by right-clicking References and selecting Add Web Reference. In the Web reference name box, rename the Web reference toExcelWebService. Click Add Reference to add a Web reference for the target Web service.
If cou click on the "Advanced..." button in the "Add Service Reference"-Dialog you get a short explanation at the bottom under "Compability":
Add a Web Reference instead of a Service Reference. This will generate code based on .NET Framewrok 2.0 Web Service technoligy.
Basicaly that means "Web Refrences" are .net 2.0 compatible, but as you already mentioned WCF needs Service reference, but you can also use Service Reference for e.g. basic SOAP-Services, but then you need .net >2 to link/run that assembly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With