Book description
Your hands-on, step-by-step guide to building connected, service-oriented applications.
Teach yourself the essentials of Windows Communication Foundation (WCF) 4 -- one step at a time. With this practical, learn-by-doing tutorial, you get the clear guidance and hands-on examples you need to begin creating Web services for robust Windows-based business applications.
Discover how to:
Build and host SOAP and REST services
Maintain service contracts and data contracts
Control configuration and communications programmatically
Implement message encryption, authentication, and authorization
Manage identity with Windows CardSpace
Begin working with Windows Workflow Foundation to create scalable and durable business services
Implement service discovery and message routing
Optimize performance with service throttling, encoding, and streaming
Integrate WCF services with ASP.NET clients and enterprise services components
Your Step by Step digital content includes:
Practice exercises
Downloadable code samples
Fully searchable online edition of the book -- with unlimited access on the Web
Table of contents
- Windows® Communication Foundation 4 Step by Step
- Table of Contents
- Acknowledgments
- Introduction
-
1. Introducing Windows Communication Foundation
-
What Is Windows Communication Foundation?
- The Early Days of Personal Computer Applications
- Inter-Process Communications Technologies
- The Web and Web Services
- Using XML as a Common Data Format
- Sending and Receiving Web Service Requests
- JavaScript Object Notation and Rich Internet Applications
- Handling Security and Privacy in a Global Environment
- Service-Oriented Architectures and Windows Communication Foundation
- Building a WCF Service
- Building a WCF Client Application
- Deploying a WCF Service to Internet Information Services
- WCF and the Principles of SOA
- Summary
-
What Is Windows Communication Foundation?
-
2. Hosting a WCF Service
- How Does a WCF Service Work?
- Hosting a WCF Service by Using Windows Process Activation Service
- Hosting a Service in a User Application
- Building a Windows Presentation Foundation Application to Host a WCF Service
- Understanding Endpoints and Bindings
- Hosting a WCF Service in a Windows Service
- Summary
- 3. Making Applications and Services Robust
-
4. Protecting an Enterprise WCF Service
- What Is Security?
-
Implementing Security in a Windows Domain
- Protecting a TCP Service at the Message Level
-
Protecting an HTTP Service at the Transport Level
-
Specify Transport-Level Security for the BasicHttpBinding Binding for the WCF Service
- Specify Transport-Level Security for the BasicHttpBinding Binding for the WCF Service
- Specify Transport-Level Security for the BasicHttpBinding Binding for the WCF Client
- Configure the WCF HTTP Endpoint with an SSL Certificate
- Add Code to the WCF Client to Override Certificate Validation Checking
- Run the WCF Client and Service
-
Specify Transport-Level Security for the BasicHttpBinding Binding for the WCF Service
- Protecting an HTTP Service at the Message Level
-
Authenticating Windows Users
-
Display the Name of the User Calling an Operation in the WCF Service
- Display the Name of the User Calling an Operation in the WCF Service
- Configure the BasicHttpBinding Binding for the WCF Service to Implement Basic Authentication
- Modify the WCF Client to Supply the User Credentials to the WCF Service
- Configure the BasicHttpBinding Binding for the WCF Service and Client to use Windows Authentication
- Examine the Authentication Mechanism used by the NetTcpBinding Binding
-
Display the Name of the User Calling an Operation in the WCF Service
- Authorizing Users
- Using Impersonation to Access Resources
- Summary
-
5. Protecting a WCF Service over the Internet
-
Authenticating Users and Services in an Internet Environment
-
Authenticating and Authorizing Users by Using the ASP.NET Membership Provider and the ASP.NET Role Provider
-
Configure IIS Bindings to Support SSL
- Configure IIS Bindings to Support SSL
- Create the InternetProductsService Web Application
- Create an ASP.NET Web Site to Host the WCF Service
- Import the Code for the WCF Service into the IIS Web Site
- Configure the Activation and Binding for the WCF Service
- Define Users and Roles for the WCF Service
- Configure the WCF service to use the ASP.NET Role Provider and the ASP.NET Membership Provider
- Modify the WCF Client Application to Connect to the Updated WCF Service
- Test the WCF Service
-
Configure IIS Bindings to Support SSL
-
Authenticating and Authorizing Users by Using Certificates
-
Modify the WCF Service to Require Client Applications to Authenticate by Using Certificates
- Modify the WCF Service to Require Client Applications to Authenticate by Using Certificates
- Modify the Client Application to Authenticate with the WCF Service by Using a Certificate
- Create Certificates to Identify the Test Users
- Export the Users’ Certificates, and Import Them into the Server’s Certificate Store
- Update the Client Application to Send a Certificate to the WCF Service
- Investigate the Identifiers of Users Authenticated by Using Certificates
- Update the User Information in the SQL Server Database
-
Modify the WCF Service to Require Client Applications to Authenticate by Using Certificates
-
Authenticating Service Messages by Using a Certificate
-
Create an ASP.NET Web Site to Host the WCF Service That Will Implement Message-Level Security
- Create an ASP.NET Web Site to Host the WCF Service That Will Implement Message-Level Security
- Configure the WCF Service to Authenticate Itself to Client Applications by Using the Localhost Certificate
- Export the WCF Service Certificate and Import It into the Client Certificate Store
- Configure the WCF Client Application to Authenticate the WCF Service
- Verify that the Client Application Authenticates the WCF Service
- Identifying a Service
-
Create an ASP.NET Web Site to Host the WCF Service That Will Implement Message-Level Security
-
Authenticating and Authorizing Users by Using the ASP.NET Membership Provider and the ASP.NET Role Provider
- Summary
-
Authenticating Users and Services in an Internet Environment
-
6. Maintaining Service Contracts and Data Contracts
- Modifying a Service Contract
-
Modifying a Data Contract
-
Data Contract and Data Member Attributes
- Change the Order of Members in the ProductData Data Contract
- Change the Namespace of the ProductData Data Contract
- Regenerate the Proxy Class and Update the WCF Client Application
- Add a New Field to the ProductData Data Contract
- Add Another Operation to the WCF Service for Investigating Data Contract Serialization
- Add Another Field to the ProductData Data Contract and Examine the Default Value
- Data Contract Compatibility
-
Data Contract and Data Member Attributes
- Summary
-
7. Maintaining State and Sequencing Operations
- Managing State in a WCF Service
- Sequencing Operations in a WCF Service
- Maintaining State by Using a Durable Service
- Summary
-
8. Implementing Services by Using Workflows
- Building a Simple Workflow Service and Client Application
- Handling Faults in a Workflow Service
- Hosting a Workflow Service
- Implementing Common Messaging Patterns in a Workflow Service
- Managing Sessions and Maintaining State in a Workflow Service
- Summary
-
9. Supporting Transactions
-
Using Transactions in a WCF Service
-
Implementing OLE Transactions
-
Enable Transactions in the ShoppingCartService Service
- Enable Transactions in the ShoppingCartService Service
- Configure the ShoppingCartService Service to Flow Transactions from Client Applications
- Create a Transaction in the Client Application
- Configure the Client Application to Flow Transactions to the ShoppingCartService Service
- Test the Transactional Implementation of the ShoppingCartService Service
-
Enable Transactions in the ShoppingCartService Service
- Implementing the WS-AtomicTransaction Protocol
-
Implementing OLE Transactions
- Designing a WCF Service to Support Transactions
- Implementing Transactions in a Workflow Service
- Summary
-
Using Transactions in a WCF Service
- 10. Implementing Reliable Sessions
-
11. Programmatically Controlling the Configuration and Communications
- The WCF Service Model
- Controlling Client Communications
- Summary
-
12. Implementing One-Way and Asynchronous Operations
- Implementing One-Way Operations
- Invoking and Implementing Operations Asynchronously
- Using Message Queues
- Summary
- 13. Implementing a WCF Service for Good Performance
-
14. Discovering Services and Routing Messages
- Implementing Discovery
- Implementing Routing
- Using the RoutingService Class
- Summary
-
15. Building REST Services
- Understanding the REST Model
- Querying Data by Implementing a REST Web Service
- Updating Data Through a REST Web Service
- Using WCF Data Services
- Summary
-
16. Using a Callback Contract to Publish and Subscribe to Events
- Implementing and Invoking a Client Callback
- Using a Callback Contract to Notify a Client of the Outcome of a One-Way Operation
- Using a Callback Contract to Implement an Eventing Mechanism
- Summary
-
17. Managing Identity with Windows CardSpace
-
Using Windows CardSpace to Access a WCF Service
-
Implementing Claims-Based Security
-
Configure the ShoppingCartService Service to Use Claims-based Security
- Configure the ShoppingCartService Service to Use Claims-based Security
- Amend the ShoppingCartService Service to Authorize Users Based on Their Email Address
- Configure the ShoppingCartClient Application to use Windows CardSpace to Send a Token Identifying the User
- Create Information Cards for Testing the ShoppingCartService Service
- Test the ShoppingCartService Service
-
Configure the ShoppingCartService Service to Use Claims-based Security
- Using an Identity Provider
- Claims-Based Authentication in a Federated Environment
-
Implementing Claims-Based Security
- Summary
-
Using Windows CardSpace to Access a WCF Service
- 18. Integrating with ASP.NET Clients and Enterprise Services Components
- Index
- About the Author
- Copyright
Product information
- Title: Windows® Communication Foundation 4 Step by Step
- Author(s):
- Release date: November 2010
- Publisher(s): Microsoft Press
- ISBN: 9780735656772
You might also like
book
Building Microservices, 2nd Edition
As organizations shift from monolithic applications to smaller, self-contained microservices, distributed systems have become more fine-grained. …
audiobook
How to Do Nothing
A galvanizing critique of the forces vying for our attention-and our personal information-that redefines what we …
audiobook
Fall in Love with the Problem, Not the Solution
Unicorns-companies that reach a valuation of more than $1 billion-are rare. Uri Levine has built two. …
audiobook
Technically Wrong
Buying groceries, tracking our health, finding a date: whatever we want to do, odds are that …