Is it correct to call a WCF Service a web service?
I am working on a assigment for school, and I made a RESTful WCF service and in the report I refered to it at times as a web service. Is it correct to refer to a WCF Service as a web service?
Windows Communication Foundation (WCF) allows you to create a service that exposes a Web endpoint. Web endpoints send data by XML or JSON, there is no SOAP envelope. This topic demonstrates how to expose such an endpoint. The only way to secure a Web endpoint is to expose it through HTTPS, using transport security.
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 a comprehensive solution, reliable session, and transactions. It signifies WCF is more adaptable to work together for a variety of software.
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.
gRPC as a migration path for WCF to .NET Core and . NET 5 marks a shift in the way that Microsoft delivers remote communication solutions to developers who want to deliver services across a range of platforms. . NET Core and . NET 5 support calling WCF services, but won't offer server-side support for hosting WCF.
WCF is a superset of Microsoft 'communication' services that includes web services.
See here.
EDIT - To answer explicitly, yes in the context you are discussing the two terms are interchangeable. Just remember that WCF can also include other communcation technologies as well as 'web services'.
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