Viacheslav Eremin | Visual Studio 2010 and .NET Framework 4 Training Kit | What�s new with WCF in .NET 4?


Hands-On Lab

What�s new with WCF in .NET 4?



Lab version: 1.0.0

Last updated:2/16/2011







Contents

Overview

Setup

Task 1 � Installing the Web Platform, Visual Studio and Windows Server AppFabric

Exercise 1: Service without Configuration

Task 1 � Creating the Web Site

Task 2 � Creating the WCF Service

Exercise 1: Verification

Exercise 2: Service Behaviors

Task 0 � Opening the Solution

Task 1 � Enabling Behaviors

Exercise 2: Verification

Exercise 3: Default Binding

Task 0 � Opening the Solution

Task 1 � Changing the Default Binding

Exercise 3: Verification

Exercise 4: Service Discovery

Task 0 � Opening the Solution

Task 1 � Configuring Service Discovery for the DiscoveryChat Application

Task 2 � Enabling ad hoc Discovery

Exercise 4: Verification

Exercise 5: Metadata Extensions

Task 0 � Opening the Solution

Task 1 � Adding an EndpointDiscoveryBehavior with Extensions

Exercise 5: Verification

Exercise 6: Discovery Announcements

Task 0 � Opening the Solution

Task 1 � Enabling Announcement Endpoint

Exercise 6: Verification

Exercise 7: Discovery Proxy

Task 0 � Opening the Solution

Task 1 � Creating a DiscoveryProxy

Task 2 � Modifying the DiscoveryChat Application to use Managed Discovery

Exercise 7: Verification

Exercise 8: Protocol Bridging

Task 0 � Opening the Solution

Task 1 � Trying the Calculator

Task 2 � Adding the Router Service

Task 3 � Modifying the Client to Enable Routed HTTP

Exercise 8: Verification

Exercise 9: Content Based Routing

Task 0 � Opening the Solution

Task 1 � Modifying the CalculatorClient to Add a Custom Header

Task 2 � Adding a New Entry to the Filter Table

Exercise 9: Verification

Exercise 10: Backup Lists

Task 0 � Opening the Solution

Task 1 � Adding a Bad Endpoint

Task 2 � Observing the Routing Fail

Task 3 � Enabling Backup Lists

Exercise 10: Verification

Exercise 11: Deploying the Web Application

Task 0 � Opening the Solution

Task 1 � Creating the Deployment Package

Task 2 � Deploying the Package

Task 3 � Changing the Client Application Configuration

Exercise 11: Verification

Summary