售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications
Table of Contents
Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications
Credits
Foreword
About the Author
About the Reviewers
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Errata
Piracy
Questions
1. Working with Contracts
Introduction
Defining a one-way Contract
How to do it...
How it works...
There's more...
See also
Make DataContract forward-compatible
How to do it...
How it works...
There's more...
See also
Generate DataContract from an XML Schema
Getting ready
How to do it...
How it works...
There's more...
See also
Using XMLSerializer to control message serialization
How to do it...
How it works...
See also
Using MessageContract to control the SOAP message
How to do it...
How it works...
See also
Adding a custom SoapHeader via Contract
How to do it...
How it works...
There's more...
See also
Return custom exception data through FaultContract
How to do it...
How it works...
There's more...
See also
2. Endpoint, Binding, and Behavior
Introduction
Configuring Default Endpoints
How to do it...
How it works...
There’s more...
See also
Setting up two-way communication over MSMQ
Getting ready
How to do it...
How it works...
There’s more...
See also
Building a Publish-Subscribe service with dual binding
Getting ready
How to do it...
How it works...
There’s more...
See also
Creating a multiple-endpoint service
How to do it...
How it works...
See also
Implementing a POX HTTP service
How to do it...
How it works...
There’s more...
See also
Defining a CustomBinding without a timestamp header
How to do it...
How it works...
See also
Suppressing mustUnderstand validation on unknown SoapHeaders
Getting ready
How to do it...
How it works...
There’s more...
See also
Sharing a physical address between multiple endpoints
How to do it...
How it works...
There’s more...
See also
3. Hosting and Configuration
Introduction
Hosting a service in a console application
How to do it...
How it works...
See also
Hosting a service in Windows Service
How to do it...
How it works...
See also
Hosting a HTTP service with ASP.NET-compatible context
How to do it...
How it works...
There's more...
See also
Hosting a non-HTTP service in IIS 7
How to do it...
How it works...
See also
Customizing IIS ServiceHost via ServiceHostFactory
How to do it...
How it works...
See also
Specifying a dedicated service instance for a singleton service
Getting ready
How to do it...
How it works...
There's more...
See also
Hosting a service in WSS 3.0
How to do it...
How it works...
See also
4. Service Discovery and Proxy Generation
Introduction
Creating a typed service client
How to do it...
How it works...
See also
Choosing a specific type for representing a collection parameter
How to do it...
How it works...
There's more...
See also
Reusing types between service and client
How to do it...
How it works...
See also
Customizing an auto-generated service proxy class in Visual Studio
How to do it...
How it works...
See also
Building an ad-hoc auto-discoverable service
Getting ready
How to do it...
How it works...
See also
Using managed ServiceDiscovery
How to do it...
How it works...
See also
Generating a service proxy in code
How to do it...
How it works...
There's more...
See also
Customizing auto-generated service metadata
How to do it...
How it works...
See also
5. Channel and Messaging
Introduction
Using ChannelFactory to consume a WCF service
How to do it...
How it works...
There's more...
See also
Invoking async operation viaChannelFactory
How to do it...
How it works...
There's more...
See also
Creating a service via ChannelListener
How to do it...
How it works...
There's more...
See also
Getting the IP address of a client consumer of a WCF service
How to do it...
How it works...
See also
Adding a dynamic SoapHeader into a message
How to do it...
How it works...
See also
6. Dealing with Data in Service
Introduction
Binding a WPF element with data from a WCF service
How to do it...
How it works...
There's more...
See also
Returning ReadOnlyCollection data
How to do it...
How it works...
See also
Using raw XML as an operation parameter
How to do it...
How it works...
There's more...
See also
Returning a DataTable/DataSet in a service operation
Getting ready
How to do it...
See also
Transferring binary data with MTOM encoding
Getting ready
How to do it...
See also
Specifying ServiceKnownType information in a programmatic way
How to do it...
How it works...
See also
Using XmlSerializer for custom data serialization
How to do it...
How it works...
See also
7. Security
Introduction
Setting up ad hoc Windows authentication over plain HTTP
How to do it...
How it works...
See also
Getting an authenticated client identity in a service operation
How to do it...
See also
Using username authentication with an ASP.NET membership provider
How to do it...
How it works...
See also
Sending a clear text username token over unsecured HTTP transport
Getting ready
How to do it...
How it works...
See also
Using transport and message security at the same time
How to do it...
How it works...
See also
Authorizing through declarative role-based access control
How to do it...
How it works...
See also
Impersonating with a client caller identity
Getting ready
How to do it...
How it works...
There's more...
See also
Adding multiple tokens in a service request (supportingToken)
How to do it...
How it works...
There's more...
See also
Supplying dedicated credentials for firewall or proxy authentication
Getting ready
How to do it...
Securing a dynamic SoapHeader
How to do it...
How it works...
See also
8. Concurrency
Introduction
Hosting a singleton instance service
How to do it...
How it works...
See also
Invoking a WCF service without blocking the front UI
How to do it...
How it works...
See also
Using throttling to control service concurrency
How to do it...
How it works...
There's more...
See also
Ensuring termination of a client session
How to do it...
How it works...
There's more...
See also
Tuning WCF concurrency performance via Visual Studio testing tools
How to do it...
How it works...
There's more...
See also
9. Extending WCF Runtime
Introduction
Using a custom ServiceHost
How to do it...
How it works...
See also
Intercepting operation parameters in a strong-type manner
How to do it...
How it works...
See also
Filtering operation requests based on message
How to do it...
How it works...
See also
Generic operation error handling with OperationInvoker
How to do it...
How it works...
There's more...
See also
Altering operation messages via MessageInspector
How to do it...
How it works...
See also
Building a custom MessageEncoder
How to do it...
How it works...
There's more...
See also
Centralizing authorization through a custom ServiceAuthorizationManager
How to do it...
How it works...
See also
10. RESTful and AJAX-enabled WCF Services
Introduction
Building a self-hosted REST service
How to do it...
How it works...
See also
Using an auto-generated Help page
How to do it...
How it works...
See also
Mapping URL suffix to operation parameters
How to do it...
How it works...
There’s more...
See also
Applying OutputCache in a REST service
How to do it...
How it works...
There’s more...
See also
Implementing file download via REST endpoint
How to do it...
How it works...
See also
Consuming a WCF service from an ASP.NET AJAX client
How to do it...
How it works...
There’s more...
See also
Accessing a remote REST service in an AJAX client
How to do it...
There’s more...
See also
11. Interoperability
Introduction
Building a WS-I Basic Profile 1.1 compatible service
Getting ready
How to do it...
How it works...
See also
Consuming an ASMX Web Service from a WCF client
How to do it...
How it works...
See also
Accessing a WCF service via the WebRequest component
How to do it...
How it works...
See also
Consuming a WCF service with a raw MSMQ program
How to do it...
How it works...
See also
Using a WCF Service in Microsoft Office
How to do it...
How it works...
See also
12. Diagnostics
Introduction
Using the WCF Test Client tool to test a service
How to do it...
There’s more...
See also
Capturing WCF request/response messages via Fiddler tool
How to do it...
See also
Using built-in tracing and message logging
How to do it...
How it works...
Debugging in a Windows service host
Getting ready
How to do it...
See also
Creating a custom Visual Studio Debugger Visualizer for WCF debugging
How to do it...
There’s more...
See also
Using PerformanceCounters for WCF service monitoring
How to do it...
13. Miscellaneous WCF Development Tips
Introduction
Creating test X.509 certificates for WCF Service
How to do it...
There's more...
Managing X.509 certificates installed on service machine
How to do it...
There's more...
Building an RSS feed service
How to do it...
There's more...
See also
Building a routing service
How to do it...
How it works...
There's more...
See also
Registering WCF components manually in IIS server
How to do it...
There's more...
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜