How To Take This Class

Course Overview

In this Windows Communication Foundation Training course, students will learn how to use Windows Communication Foundation (WCF) and will see how it is a unified programming model for building service-oriented distributed applications. Students will see how to build, host and call WCF services and will gain a deep understanding of the basic building blocks of WCF, including endpoints, bindings and contracts. In addition, students will see how to handle exceptions, maintain state between calls to a service and use transactions. Subsequent topics include and basics of WCF security, integrating WCF with Windows Workflow Foundation and building WCF services that support Representational State Transfer (REST) and syndication. By the time students have completed the course, they will have a good understanding of how to build and use WCF services in distributed applications. This course can be delivered in Visual Basic or Visual C# to accommodate a student's language preferences.

Course Prerequisites

This course is designed for individuals with an intermediate knowledge of Visual Basic or C#, of building Windows and Console applications using Visual Studio 2008, and a familiarity with building and calling Web Services. Students should also have a strong programming background.

Course Audience

This course is designed for individuals with an intermediate knowledge of Visual Basic or C# who are interested in learning how to build service-oriented applications using Windows Communication Foundation.

What You'll Learn

Upon successful completion of this course, students will be able to:
  • Build and call WCF services.
  • Host WCF services using Web servers and managed applications.
  • Configure service endpoints in code and in configuration files.
  • Use the WCF-supplied bindings as well as create custom bindings.
  • Manage service and data contracts.
  • Handle exceptions in WCF services.
  • Monitor and diagnose WCF services at runtime.
  • Implement three different message exchange patterns.
  • Maintain state in WCF services.
  • Add transactions support to a WCF services.
  • Authenticate callers of a service and restrict their access based on roles.
  • Expose a workflow as a WCF service and call a WCF service from within a workflow.
  • Build WCF services that support REST.
  • Build WCF services that generate RSS and Atom feeds.

Course Duration

2 Days

Course Outline

  1. Introduction to WCF
    • What is Windows Communication Foundation?
    • Create Your First WCF Service
    • WCF Building Blocks
    • Host and Call a WCF Service
  2. Hosting and Calling WCF Services
    • Hosting a WCF Service
    • Host a WCF Service Using Internet Information Services
    • Self-host WCF Services
    • Use Configuration Files to Define Endpoints
    • Add a Service Reference to a Self-hosted Service
    • Host a WCF Service Using a Windows Service
    • Host a WCF Service Using a Windows Process Activation Service
  3. Bindings and Contracts
    • Channels and Bindings
    • Contracts
  4. Exceptions, Diagnostics and Message Patterns
    • Handling Exceptions
    • Tracing and Message Logging
    • One-Way and Duplex Operations
  5. Sessions and Transactions
    • Sessions
    • Transactions
  6. Security
    • WCF Security Basics
    • Authentication
    • Authentication Using ASP.NET Membership
    • Authorization
    • Authorization Using ASP.NET Roles
  7. Workflow Services
    • Windows Workflow Foundation
    • Workflow Services
    • Stateful Workflow Services
  8. RESTful Services and Syndication
    • Building RESTful WCF Services
    • WCF Syndication