Szczegóły ebooka

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications. Over 85 easy recipes for managing communication between applications

Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications. Over 85 easy recipes for managing communication between applications

Juntao Cheng, Steven Cheng

Ebook
The Windows Communication Foundation 4.0 (WCF 4.0) is a .NET-based application programming interface for building and running connected systems. It enables secure and reliable communication among systems within an organization or across the Internet. This book deals with the difficult issues faced by a .NET developer while working with WCF.WCF 4.0 is a communications infrastructure that unifies a broad array of distributed systems' capabilities in a composable, extensible architecture that supports multiple transports, messaging patterns, encodings, network topologies, and hosting models. This book is a collection of focused real-world recipes and covers basic recipes on topics such as working with contracts to more advanced topics such as extending WCF runtime. By the end of this book you will have valuable information that helps transform the potentially unproductive habits of .Net developers who work with WCF.This book will take you through many concepts starting with complete support for contract-related design for WCF service development. You will learn to use WCF's built-in feature for building various service endpoints. Service hosting and configuration are important areas for building WCF services, especially at the service deployment stage, and are detailed in this book. You will find it easy to work with WCF client proxy generation and metadata publishing and discovery when you go through recipes such as customizing auto-generated service proxies.The author then discusses the exchange of data in WCF service operation features, related to WCF data serialization. You will discover some useful tips for security in WCF service development and built-in features for developing concurrency control for your services built upon it.One big plus is that you will learn to extend the existing WCF framework to achieve advanced functionality. You will find a dedicated chapter for RESTful and AJAX-enabled service development. Moving on, you will find several useful WCF service interoperability cases, which are important for a distributed service development platform. Towards the end of this book you will find some handy and useful diagnostic methods for troubleshooting.
  • 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...
        • Theres 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...
        • Theres more...
        • See also
      • Setting up two-way communication over MSMQ
        • Getting ready
        • How to do it...
        • How it works...
        • Theres more...
        • See also
      • Building a Publish-Subscribe service with dual binding
        • Getting ready
        • How to do it...
        • How it works...
        • Theres 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...
        • Theres 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...
        • Theres more...
        • See also
      • Sharing a physical address between multiple endpoints
        • How to do it...
        • How it works...
        • Theres 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...
        • Theres more...
        • See also
      • Applying OutputCache in a REST service
        • How to do it...
        • How it works...
        • Theres 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...
        • Theres more...
        • See also
      • Accessing a remote REST service in an AJAX client
        • How to do it...
        • Theres 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...
        • Theres 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...
        • Theres 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
  • Tytuł: Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications. Over 85 easy recipes for managing communication between applications
  • Autor: Juntao Cheng, Steven Cheng
  • Tytuł oryginału: Microsoft Windows Communication Foundation 4.0 Cookbook for Developing SOA Applications. Over 85 easy recipes for managing communication between applications
  • ISBN: 9781849680776, 9781849680776
  • Data wydania: 2010-10-20
  • Format: Ebook
  • Identyfikator pozycji: e_3cze
  • Wydawca: Packt Publishing