what is WCF and how does it work?

12,324

Windows communication foundation or Wcf is a framework for building services. Wcf supports exposing web services, services based on urls (rest) or services ment only to work on a single machine, such as two different programs communicating via shared memory.

Basically wcf abstracts the service (a .net interface) and the transport (or in wcf terms, a binding). A single service in Wcf can be exposed as a web service or using shared memory without any actual code changes, the endpoints are all based on app config files.

Perhaps this article on msdn will make things clearer http://msdn.microsoft.com/en-us/library/ms731082.aspx

Some terms,
Interoperability - to operate, or work together, with something else (inter- between, operate- work together) a wcf service can interoperate with a client written in java for example

Serialization - to convert an object to a stream of bytes that can be sent somewhere and then deserialized back into an object

Share:
12,324
Hunain
Author by

Hunain

Web programmer.

Updated on June 04, 2022

Comments

  • Hunain
    Hunain almost 2 years

    what is this WCF ? i used web services little bit but don't know about theses WCF, read a lot on google but couldn't get its technical terms like http://www.codeproject.com/Articles/139787/What-s-the-Difference-between-WCF-and-Web-Services or msdn.

    It says like communication over HTTP and SOAP , serialization, soap etc but yet I'm not qualified to understand these. Help me, guide me and please in easy wordings.

    [WebService] 
    public class Service : System.Web.Services.WebService 
    { 
      [WebMethod] 
      public string Test(string strMsg) 
      { 
          return strMsg; 
      } 
    }
    

    etc and how to use them with asp.net ?