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

user29440 picture user29440 · Oct 19, 2008 · Viewed 20.4k times · Source

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

Answer

Jorge Villuendas Zapatero picture Jorge Villuendas Zapatero · Oct 19, 2008

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.