10/13/09

WCF

1. What is WCF?

WCF (Windows Communication Foundation) is a unification of technology.

Which Units the following technologies.

a. Net Remoting
b. MSMQ
c. Webservice

d. COM+

It is based on SOA(Service oriented Architecture)
.

There are a few articles about the WCF ABC's (1, 2)but the short story is that you always have to remember:
2. What is ABC in WCF?


  1. A stands for Address
  2. B stands for Binding
  3. C stands for Contract
Address ( Where)

An address indicates where we can find this service. Address is a URL(http://mydomain.com/Myservice.asmx), which points to the location of the service.

WCF can provided addresses for the following protocols:
  1. HTTP
  2. TCP
  3. NamedPipe
  4. Peer2Peer
  5. MSMQ

Binding (How)

Bindings determine how this end can be accessed. It determines how communications are done. For instance, you expose your service, which can be accessed using SOAP over HTTP or BINARY over TCP. So for each of these communications medium two bindings will be created.

Contract (What)

Contract is an agreement between two or more parties. It defines the protocol how the client should communicate with your service. Technically, it describes parameters and return values for a method.

Welcome