Basic Programming

This article gives you the clear picture of WCF implementation

Introduction

Windows Communication Foundation (WCF) is an SDK for developing and deploying services on Windows.

WCF provides a runtime environment for services, enabling you to expose CLR types as services, and to consume other services as CLR types.

Service: the functionality exposed to the world

Client: consuming the functionality from the service.

Main Components

  1. Endpoint
  2. Hosting environment
  3. Service class

The Endpoint in WCF Is ABC

WCF supports following transport schemas

Contracts in WCF

o Service Contract (at class level)
o Operation Contract(atmethod level)

o Data contract (at class level)
o Data Member (at property level)

Hosting of WCF

  1. IIS
  2. Self Hosting
  3. WAS (Windows Activation Service)
Implementation

STEPS FOR WCF IMPLEMENTATION