Showing posts with label WCF. Show all posts
Showing posts with label WCF. Show all posts

Tuesday, April 24, 2012

WCF Contracts – an overview


As we know WCF is used to build service oriented applications. It’s been part of .net framework 3.0 and 3.5. Now we have few questions in mind like where to contact for a service, in which format I should send the message to the service, what happens if something goes wrong etc. In order to answer all these questions we have WCF defines contract to its consumers.
We can classify them into the three categories as follows
  • Service contract : Defines the operations that service exposes to its consumers
  • Data contract : Defines the structure of the data in message flow
  • Message contract : Defines the headers included in the message and how its structured
As a whole we can categorize the contracts as
  • Behavioral Contract :It defines how the service behaves, what operations it exposes, what kind of faults it issues and about the MEP (Message Exchange Pattern) to be used in interacting with the service etc
  • Structural Contracts:It simply defines the Data and Message contracts used by your WCF service. 
Well in my coming posts, we will define each of the above ones in details. Keep watching the blog posts.




Sunday, April 22, 2012

Windows Communication Foundation - Overview

Before getting into an overview of Windows Communication Foundation, it’s important to explain about SOA i.e Service Oriented Architecture. The W3C defines Service-Oriented Architecture as "A set of components which can be invoked and whose interface descriptions can be discovered and published". In simple terms SOA helps to integrate distributed applications by means of interface in terms of protocols and functionality.

With the above definition in mind, now we can move to WCF i.e. Windows Communication Foundation. It can be considered as a Microsoft’s contribution towards SOA. It is a platform, a framework if you will, for creating and distributing connected applications.

Simply we can define WCF as follows

WCF = Web Service +.Net Remoting + MSMQ + COM




Installing ASP.NET MVC

Installing ASP.NET MVC Before we dive deep into the ASP.NET MVC, let’s install it our development machine. This is very straight forwa...