Wednesday, 1 January 2014

Statring with WCF

WCF Introduction and Contracts

Introduction

Defining the basic information of all the contracts and a code demonstration for creating the WCF service application.
What is WCF? WCF is a combined feature of Web Service, Remoting, MSMQ and COM+. WCF provides a common platform for all .NET communication. It is a part of .Net 3.0.

Difference between WCF and Web service

  •  In a web service we need to add the [WebService] attribute to the class. In WCF we need to add the [ServiceContract] attribute to the class.
  • Add the [WebMethod] attribute to the method in a web service. Add the [OperationContract] attribute to the method in WCF.
  • For serialization in a web service use the System.Xml.serialization namespace. WCF uses the System.Runtime.Serialization namespace for serialization.
  •  We can host a web service in IIS. We can host WCF in IIS, WAS (Windows Activation Service), self-hosting and a Windows Service.
In this week we will start with basic concepts of WCF-
The first topic :

Creating Services (20%)

 Create service and operation contracts.

This objective may include but is not limited to: one-way, duplex, and request reply; creating and specifying fault contracts; configuration-based contracts; exposing service metadata; selecting serialization (e.g., data contract serializer vs. XML serializer)
This objective does not include: designing service and operation contracts; transactions, instantiation, security-related attributes

- Stay connected and post ur comment if u want something special from WCF world