Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the difference between an asp.net web method and a wcf service?

I'm new to .Net and do not understand the difference. Can someone point me in the right direction?

like image 994
user29440 Avatar asked Oct 19 '08 20:10

user29440


People also ask

What is a WCF Web service?

Windows Communication Foundation (WCF) is a framework for building service-oriented applications. Using WCF, you can send data as asynchronous messages from one service endpoint to another. A service endpoint can be part of a continuously available service hosted by IIS, or it can be a service hosted in an application.

What is the difference between WCF and Windows service?

A windows service is what you need. WCF is a communications library, and unless you plan to communicate with your application via a client, you don't need it. Your problem is related to activation, and keeping your code active in the background is what windows services do.

What is difference between WCF and Web service?

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.

What are the differences between WCF and ASMX Web services?

5) The purpose of ASMX services is to send and receive data using SOAP over HTTP protocol. However, WCF services can send and receive data using any format over different protocols like HTTP, HTTPS, TCP, MSMQ etc.


1 Answers

ASP.NET Web services was developed for building applications that send and receive messages by using the Simple Object Access Protocol (SOAP) over HTTP.

WCF is for enabling .NET Framework applications to exchange messages with other software entities. SOAP is used by default, but the messages can be in any format, and conveyed by using any transport protocol.

You can view ASP.NET web services as a subset of WCF services.

Here is a link comparing the two frameworks.

like image 99
Jorge Villuendas Zapatero Avatar answered Oct 19 '22 14:10

Jorge Villuendas Zapatero