Book description
A guide to architecting, designing, and building distributed applications with Windows Communication Foundation
Windows Communication Foundation is the .NET technology that is used to build service-oriented applications, exchange messages in various communication scenarios, and run workflows. This guide enables developers to create state-of-the-art applications using this technology.
Written by a team of Microsoft MVPs and WCF experts, this book explains how the pieces of WCF 4.0 build on each other to provide a comprehensive framework to support distributed enterprise applications. Experienced developers will learn both theory and practical application using the familiar Wrox approach.
.NET developers will learn to design services, create a hosting environment with Dublin, build cloud-based integrations, and much more.
Coverage Includes:
Design Principles and Patterns
Service Contracts and Data Contracts
Bindings
Clients
Instancing
Workflow Services
Understanding WCF Security
WCF Security in Action
Federated Authentication in WCF
Windows Azure Platform AppFabric
Creating a SOA Case
Creating the Communication and Integration Case
Creating the Business Process
Hosting
Table of contents
- Copyright
- ABOUT THE AUTHORS
- CREDITS
- ACKNOWLEDGMENTS
- INTRODUCTION
-
1. Design Principles and Patterns
- 1.1. WHAT IS SOA?
- 1.2. FOUR TENETS OF SOA
-
1.3. ANATOMY OF A SERVICE
-
1.3.1. Service Ecosystem
- 1.3.1.1. Applications Are Composed of Services
- 1.3.1.2. Services Manage State
- 1.3.1.3. Services Enforce Policies
- 1.3.1.4. Policies Enforce Operational Requirements
- 1.3.1.5. Services Are Bound by Contracts
- 1.3.1.6. Contracts Describe Message Exchange Patterns
- 1.3.1.7. Contracts Contain Schemas and Schemas Define Message Structure
- 1.3.1.8. A Message Exchange Pattern Is a Set of Messages
- 1.3.1.9. Services Exchange Messages
-
1.3.1. Service Ecosystem
- 1.4. ORCHESTRATING SERVICES IN BUSINESS PROCESSES
- 1.5. TECHNOLOGIES BEHIND SOA
- 1.6. CONTRACT-FIRST PRINCIPLE
- 1.7. HOW WCF AND .NET SERVICES IMPLEMENT SOA PATTERNS
- 1.8. COMMUNICATION AND INTEGRATION PATTERNS
- 1.9. BUSINESS PROCESS PATTERNS
- 2. Service Contracts and Data Contracts
- 3. Bindings
- 4. Clients
- 5. Instancing
-
6. Workflow Services
- 6.1. ANATOMY OF A WORKFLOW SERVICE
- 6.2. DECLARATIVE SERVICES
- 6.3. SEND AND RECEIVE ACTIVITIES
- 6.4. IMPLEMENTING YOUR FIRST WORKFLOW SERVICE
- 6.5. CONFIGURING A WORKFLOW SERVICE
- 6.6. IMPLEMENTING MESSAGE CORRELATION
- 6.7. HOSTING THE WORKFLOW SERVICES
- 7. Understanding WCF Security
-
8. WCF Security in Action
-
8.1. FIRST STEPS IN AUTHENTICATION
- 8.1.1. Claims-Based Identity Model
-
8.1.2. Authentication in Action
-
8.1.2.1. Username Authentication Over Message Security
- 8.1.2.1.1. Step 1: Create the Service Implementation
- 8.1.2.1.2. Step 2: Configure the Service with WsHttpBinding, Username Authentication, and Message Security
- 8.1.2.1.3. Step 3: Implement the Client Application
- 8.1.2.1.4. Step 4: Configure the Client with WsHttpBinding, Message Security, and Username Authentication
- 8.1.2.2. Variant 1: Using a Custom Membership Provider as the Identity Store
- 8.1.2.3. Variant 2: Using a Custom UserNamePasswordValidator Implementation
-
8.1.2.4. Username Authentication Over Transport Security
- 8.1.2.4.1. Step 1: Configure a Virtual Directory in IIS for SSL
- 8.1.2.4.2. Step 2: Create a Virtual Directory in IIS Configured with Basic Authentication
- 8.1.2.4.3. Step 3: Configure the Service with WsHttpBinding, Basic Authentication, and Transport Security
- 8.1.2.4.4. Step 4: Configure the Client with WsHttpBinding, Transport Security, and Basic Authentication
-
8.1.2.5. Mutual X509 Certificate Authentication Over Message Security
- 8.1.2.5.1. Step 1: Create the Service Implementation
- 8.1.2.5.2. Step 2: Configure the Service with WsHttpBinding, Certificate Authentication, and Message Security
- 8.1.2.5.3. Step 3: Implement the Custom X509CertificateValidator
- 8.1.2.5.4. Step 4: Implement the Client Application
- 8.1.2.5.5. Step 5: Configure the Client with WsHttpBinding, Message Security, and Certificate Authentication
-
8.1.2.6. Kerberos Authentication Over Message Security
- 8.1.2.6.1. Step 1: Create the Service Implementation
- 8.1.2.6.2. Step 2: Configure the Service with WsHttpBinding, Windows Authentication, and Message Security
- 8.1.2.6.3. Step 3: Implement the Client Application
- 8.1.2.6.4. Step 4: Configure the Client with WsHttpBinding, Message Security, and Windows Authentication
-
8.1.2.1. Username Authentication Over Message Security
- 8.1.3. Claims Transformation and Security Context Initialization
- 8.1.4. Service Authorization
-
8.1. FIRST STEPS IN AUTHENTICATION
- 9. Federated Authentication in WCF
- 10. Windows Azure Platform AppFabric
-
11. Creating a SOA Case
- 11.1. THE REQUIREMENTS FOR THE CASE
- 11.2. SETTING UP THE SOLUTION
- 11.3. CREATING THE INTERFACES
- 11.4. CREATING THE SERVICES
- 11.5. CREATING THE HOST
- 11.6. CREATING THE DATABASE
- 11.7. IMPLEMENTING THE SERVICE
- 11.8. EXPOSING METADATA
- 11.9. CREATING THE CARMANAGEMENT CLIENT
- 11.10. CREATING THE RENTALAPPLICATION
- 11.11. ADDING CORRECT ERROR HANDLING
- 11.12. IMPERSONATING THE CLIENT
- 11.13. EXTENDING THE CARMANAGEMENT INTERFACE TO ACCEPT THE SUBTYPES OF CARS
- 11.14. IMPLEMENTING THE EXTERNALINTERFACEFACADE
-
12. Creating the Communication and Integration Case
- 12.1. DEFINING THE REQUIREMENTS
- 12.2. SETTING UP THE SOLUTION
- 12.3. CREATING THE HQORDERENTRYINTERFACE
- 12.4. CREATING THE HELPERLIB
- 12.5. CREATING THE ORDERENTRYIMPLEMENTATION
- 12.6. CREATING THE HQORDERENTRYSERVICEHOST
- 12.7. CREATING THE ORDERENTRYAPPLICATION
- 12.8. CREATING THE LOCALORDERENTRYINTERFACE
- 12.9. CONTINUING THE ORDERENTRYIMPLEMENTATION
- 12.10. CREATING THE HQPRODUCTSERVICEASMX
- 12.11. CREATING THE HQLOCALIZATIONSERVICE
- 12.12. CODING THE ROUTERORDERENTRY METHOD
-
12.13. CREATING THE REALTIMEORDERTRACKINGAPPLICATION
- 12.13.1. Coding the RealTimeOrderTrackingApplication Method
- 12.13.2. Adding the ISubscribeToOrderTrackingInfo Interface
- 12.13.3. Implementing the SubscribeService Method
- 12.13.4. Calling the Subscribers When the Order Is Processed
- 12.13.5. Opening the SubscribeService
- 12.13.6. Subscribing from the RealTimeOrderTrackingApplication
- 12.13.7. Configuring the HQOrderEntryServiceHost
- 12.14. CREATING THE ROUTER
- 12.15. CONFIGURING THE HQORDERENTRYSERVICEHOST
-
13. Creating the Business Process
- 13.1. DEFINING THE REQUIREMENTS
- 13.2. SETTING UP THE SOLUTION
- 13.3. CREATING THE DATA CONTRACTS
- 13.4. CREATING THE CALCULATEREFERENCEIDSERVICE
- 13.5. CREATING THE RECEIVEAPPROVEDHOLIDAYREQUESTSSERVICE
-
13.6. ADDING SERVICE REFERENCES TO THE HOLIDAYREQUESTACTIVITYLIBRARY PROJECT
- 13.6.1. Adding the CalculateReferenceIDService
- 13.6.2. Adding the ReceiveApprovedHolidayRequestsService
- 13.6.3. Developing the HolidayRequestProcess
- 13.6.4. Adding the Workflow
- 13.6.5. Creating Variables
- 13.6.6. Configuring the Receive Activity
- 13.6.7. Configuring the Send Activity
- 13.6.8. Configuring the ApproveRequest ReceiveAndSendReply Activity
- 13.7. DEVELOPING THE HOLIDAYREQUESTHOST
- 13.8. TESTING TO SEE IF THIS SERVICE HOST EXPOSES THE METADATA CORRECTLY
- 13.9. DEVELOPING THE MANAGERSHOLIDAYREQUESTAPPROVALAPPLICATION
- 13.10. CREATING THE SQLWORKFLOWINSTANCESTORE
- 14. Hosting
Product information
- Title: Professional WCF 4: Windows Communication Foundation with .NET 4
- Author(s):
- Release date: June 2010
- Publisher(s): Wrox
- ISBN: 9780470563144
You might also like
book
Professional WCF Programming: .NET Development with the Windows® Communication Foundation
Part of the new .NET 3.0 extensions to .NET 2.0, WCF provides a unified platform for …
book
Professional C# 5.0 and .NET 4.5.1
Comprehensive, advanced coverage of C# 5.0 and .NET 4.5.1 Whether you're a C# guru or transitioning …
book
MCPD 70-518 Exam Ref: Designing and Developing Windows® Applications Using Microsoft® .NET Framework 4
Professional-level prep for the professional-level exam. Prepare for MCPD Exam 70-518—and help demonstrate your real-world mastery …
video
ASP.NET 4 24-Hour Trainer
Welcome to the video portion of ASP.NET 4 24-Hour Trainer This unique book-and-video package introduces ASP.NET …