McCullough & Associates | Training | Consulting

(972) 712-7103

Intro. to Windows Communication Foundation

Take this class

Click here to request this course on a different date.

This course provides students with the knowledge and skills to build and configure a Windows Communication Foundation (WCF) Application. This course is compatible with Microsoft Course Number 6164A

Audience

This course is for C# or VB.Net programmers that wish to publish or consume services using a variety of mechanisms

Length: 3 Days (4 Session via web)

Outline

INTRODUCTION TO WCF

  • What is WCF?
  • WCF Services
  • Service Orientation
  • WCF and Web Services
  • WCF = ABC
  • Address, Binding, Contract
  • Hosting Services
  • Internet Information Services
  • Internet Services Manager
  • Virtual Directory
  • Anonymous Access
  • Configuring .svc Extension
  • A Service Contract
  • A Website for the Service
  • WCF Service Template
  • Service Configuration
  • Configuration Details
  • Referencing the Class Library
  • Examining the Service in the Browser
  • Metadata Publishing Support
  • Service in the Browser with Metadata
  • WCF Clients
  • Creating WCF Clients
  • WCF Architecture
  • ServiceHost and ChannelFactory
  • Service Contexts and Instances

DATA CONTRACTS

  • Data Contracts
  • XSD for Data Contract
  • Arrays
  • Array in XML Schema
  • Array in Proxy
  • Generic Collections
  • Generic Collection in XML Schema
  • Generic Collection in Proxy
  • Enumerations in Data Contracts
  • Employee Client Program
  • Saving and Restoring
  • Serialization in WCF
  • Serialization in .NET
  • SOAP Serialization
  • JSON Serialization
  • DataContract Serialization
  • Using XmlSerializer
  • Restoring Data
  • Versioning
  • New and Missing Members
  • Versioning Demonstration
  • New Client of Old Service
  • Round Trip
  • Required Members
  • OnDeserializing Event

ADDRESSES AND BINDINGS

  • Addresses
  • Transports
  • Bindings
  • Message Exchange Patterns (MEPs)
  • Security
  • Choosing a Binding
  • HTTP Bindings
  • TCP and Named Pipe Bindings
  • MSMQ Bindings
  • Working with Endpoints
  • Importance of BasicHttpBinding
  • WCF Service Hosting
  • ServiceHost
  • Client Program without Proxy Class
  • Using a Channel Factory
  • Service Endpoints
  • Multiple Endpoints
  • Configuration Files
  • Simplified Host Code
  • Configuring Metadata Exchange

SERVICE CONTRACTS

  • Service Contracts at Class Level
  • Service Contracts at Interface Level
  • Benefits of Interface Level Definition
  • A Service with Multiple Contracts
  • ServiceContractAttribute
  • Viewing WSDL Files
  • Contract Inheritance
  • Operation Overloading
  • Enabling Operation Overloading
  • Operation Overloading Client

INSTANCE MANAGEMENT

  • Behaviors
  • WCF Behaviors
  • Configuring Behaviors
  • Configuring Behaviors in Code
  • WCF Instancing Models
  • Per-Call Instancing
  • Per-Session Instancing
  • Sessions and Threading
  • Singleton Instancing
  • Which Model to Use?

MORE ABOUT SERVICE CONTRACTS

  • Versioning Service Contracts
  • Version 1 Service
  • Version 2 Service
  • New Operations
  • Version 3 Service
  • Version 1 Client / Version 3 Service
  • Message Exchange Patterns
  • Request-Reply
  • Oneway
  • Duplex
  • Callbacks
  • Invoking a Callback
  • Callback on the Client
  • Asynchronous Proxies
  • Threading Considerations

HANDLING ERRORS

  • Errors in Distributed Systems
  • Errors in .NET and WCF
  • Service Library Code
  • Client Code
  • Client Exception Handling
  • Fault Exceptions
  • Faults
  • Exception Details in Faults
  • Exceptions Dialog
  • Fault Contracts
  • Custom Faults
  • Faulted Channels