Monday, November 29, 2010

What is WCF?

- Windows Communication Foundation is one of the API.
- Interoperability which is the ability of diverse the systems and organization can work together.
- Service Layer between application layer and business layer in three tier architecture.
- A combined features of Web Services, COM+, Remoting, MSMQ
- A common platform for all .Net communication.

- ABC is the three major points of WCF.
     o Address (Where)
           It is mandatory for WCF.
           Specify the location of service which is exposed for client
           Http, TCP, NamedPipe, MSMQ
           Defined with Uniform Resource Identifier (URI)
     o Binding (How)
           Specify how the client access the service.
           BasicHttpBinding, netTcpBinding, wsBinding
     o Contract (What)
           Specify what are the functions that service can do.
           ServiceContract (Interface)
           Must have service class to implement the service contract
           DataContract (get, set) which can be primitive data type or complex data type.
           OperationContract which is the method of ServiceContract.

- Must have endpoint
- Client can consume the services from the service host through endpoint.


This is just my knowledge.

No comments:

Post a Comment

If this post is useful, pls comment here.