CONTENTS
Investigating the Core WCF Assemblies ........................................................................992
The Visual Studio WCF Project Templates .....................................................................993
The WCF Service Web Site Project Template ....................................................................................... 995
The Basic Composition of a WCF Application ................................................................996
The ABCs of WCF ...........................................................................................................997
Understanding WCF Contracts.............................................................................................................. 997
Understanding WCF Bindings ............................................................................................................... 999
Understanding WCF Addresses .......................................................................................................... 1001
Building a WCF Service................................................................................................1002
The [ServiceContract] Attribute .......................................................................................................... 1004
The [OperationContract] Attribute....................................................................................................... 1005
Service Types As Operational Contracts............................................................................................. 1005
Hosting the WCF Service .............................................................................................1006
Establishing the ABCs Within an App.config File................................................................................ 1007
Coding Against the ServiceHost Type................................................................................................. 1007
Specifying Base Addresses ................................................................................................................ 1008
Details of the ServiceHost Type.......................................................................................................... 1009
Details of the Element................................................................................. 1011
Enabling Metadata Exchange ............................................................................................................. 1012
Building the WCF Client Application ............................................................................1015
Generating Proxy Code Using svcutil.exe ........................................................................................... 1015
Generating Proxy Code Using Visual Studio ....................................................................................... 1016
Configuring a TCP-Based Binding....................................................................................................... 1018
Simplifying Configuration Settings ..............................................................................1020
Leveraging Default Endpoints............................................................................................................. 1020
Exposing a Single WCF Service Using Multiple Bindings ................................................................... 1021
Changing Settings for a WCF Binding................................................................................................. 1022
Leveraging the Default MEX Behavior Configuration.......................................................................... 1024
xxxviii