SIGN UP MEMBER LOGIN:    
ARTICLE

WCF Features in .NET Framework 4.0

Posted by Kalyan Bandarupalli Articles | Learn .NET February 08, 2009
Tags: .NET FW 4.0, WCF
WCF providing a way to define service contracts and to configure endpoint definitions using the declarative XAML in .NET Framework 4.0.
Reader Level:

Introduction

WCF providing a way to define service contracts and to configure endpoint definitions using the declarative XAML in .NET Framework 4.0. You can read the following articles to better understood the WCF features in .NET FW 4.0.

Consider the WCF service contract definition:



In .NET Framework 4.0, you can define the same contract declaratively using the following XAML definition:



We have defined service contract in XAML, the next step is defining the projection of contract over wire.NET Framework 4.0 introduces the concept of a contract-projection to separate the logical contract definition from the message.

It allows you to define a single-service contract and can projected differently to support different message styles.
Example: You can have one contract projection for SOAP based messaging and another projection for REST messaging.


SOAP contract projection for the service contract that we defined above



The Service Implementation logic in XAML looks like



Pain thing is there is no visual designer to build the services declaratively.

More features like you can manage workflow services with new "Dublin" extensions. Improved configuration, message correlation is expecting in new FW.

You can read Dublin features article to know how WCF services can be managed in FW 4.0

Source: MSDN magazine Jan issue

Login to add your contents and source code to this article
share this article :
post comment
 
Team Foundation Server Hosting
Become a Sponsor
PREMIUM SPONSORS
  • Finally – a virtual platform that delivers next-generation Windows Server 2008 Hyper-V virtualization technology from a managed hosting partner you can truly depend on. Visit www.maximumasp.com/max for a FREE 30 day trial. Hurry offer ends soon. Climb aboard the MaxV platform and take advantage of High Availability, Intelligent Monitoring, Recurrent Backups, and Scalability – with no hassle or hidden fees. As a managed hosting partner focused solely on Microsoft technologies since 2000, MaximumASP is uniquely qualified to provide the superior support that our business is built on. Unparalleled expertise with Microsoft technologies lead to working directly with Microsoft as first to offer IIS 7 and SQL 2008 betas in a hosted environment; partnering in the Go Live Program for Hyper-V; and product co-launches built on WS 2008 with Hyper-V technology.
    Get 2 Months Free of ASP.NET Hosting for Only $4.95/month! Receive FREE MS SQL and MySQL Databases Including ASP.NET 4/3.5, MVC 3.0, Silverlight 4, Windows 2008/IIS 7.0 Plus FREE IIS 7 Modules. Host UNLIMITED ASP.NET Web Sites - Click Here!
Nevron Gauge for SharePoint
Become a Sponsor