Programming WCF Services
暫譯: 編寫 WCF 服務

Juval Lowy

  • 出版商: O'Reilly
  • 出版日期: 2007-03-02
  • 售價: $1,740
  • 貴賓價: 9.5$1,653
  • 語言: 英文
  • 頁數: 640
  • 裝訂: Paperback
  • ISBN: 0596526997
  • ISBN-13: 9780596526993
  • 已過版

買這商品的人也買了...

商品描述

Description

Written by Microsoft software legend Juval Lowy, Programming WCF Services is the authoritative introduction to Microsoft's new, and some say revolutionary, unified platform for developing service-oriented applications (SOA) on Windows. Relentlessly practical, the book delivers insight, not documentation, to teach developers what they need to know to build the next generation of SOAs.



After explaining the advantages of service-orientation for application design and teaching the basics of how to develop SOAs using WCF, the book shows how you can take advantage of built-in features such as service hosting, instance management, asynchronous calls, synchronization, reliability, transaction management, disconnected queued calls and security to build best in class applications. Programming WCF Services focuses on the rationale behind particular design decisions, often shedding light on poorly-documented and little-understood aspects of SOA development. Developers and architects will learn not only the "how" of WCF programming, but also relevant design guidelines, best practices, and pitfalls. Original techniques and utilities provided by the author throughout the book go well beyond anything that can be found in conventional sources.



Based on experience and insight gained while taking part in the strategic design of WCF and working with the team that implemented it, Programming WCF Services provides experienced working professionals with the definitive work on WCF. Not only will this book make you a WCF expert, it will make you a better software engineer. It's the Rosetta Stone of WCF.

 

Table of Contents

Foreword

Preface

1. WCF Essentials

     What Is WCF?

     Services

     Addresses

     Contracts

     Hosting

     Bindings

     Endpoints

     Metadata Exchange

     Client-Side Programming

     Programmatic Versus Administrative Configuration

     WCF Architecture

     Working with Channels

     Reliability

2. Service Contracts

     Operation Overloading

     Contract Inheritance

     Service Contracts Factoring and Design

     Contract Queries

3. Data Contracts

     Serialization

     Data Contract Attributes

     Data Contract Hierarchy

     Data Contract Equivalence

     Versioning

     Enumerations

     Delegates and Data Contracts

     Data Sets and Tables

     Generics

     Collections

4. Instance Management

     Behaviors

     Per-Call Services

     Per-Session Services

     Singleton Service

     Demarcating Operations

     Instance Deactivation

     Throttling

5. Operations

     Request-Reply Operations

     One-Way Operations

     Callback Operations

     Events

     Streaming

6. Faults

     Errors and Exceptions

     Fault Contracts

     Error-Handling Extensions

7. Transactions

     The Recovery Challenge

     Transactions

     Transaction Propagation

     Transaction Protocols and Managers

     The Transaction Class

     Transactional Service Programming

     Explicit Transaction Programming

     Service State Management

     Instance Management and Transactions

     Callbacks

8. Concurrency Management

     Instance Management and Concurrency

     Service Concurrency Mode

     Instances and Concurrent Access

     Resources and Services

     Resource Synchronization Context

     Service Synchronization Context

     Custom Service Synchronization Context

     Callbacks and Client Safety

     Callbacks and Synchronization Context

     Asynchronous Calls

9. Queued Services

     Disconnected Services and Clients

     Queued Calls

     Transactions

     Instance Management

     Concurrency Management

     Delivery Failures

     Playback Failures

     Queued Versus Connected Calls

     Response Service

     HTTP Bridge

10. Security

     Authentication

     Authorization

     Transfer Security

     Identity Management

     Overall Policy

     Scenario-Driven Approach

     Intranet Application

     Internet Application

     Business-to-Business Application

     Anonymous Application

     No Security

     Scenarios Summary

     Declarative Security Framework

     Security Auditing

A. Introduction to Service-Orientation

B. Publish-Subscribe Service

C. WCF Coding Standard

Index

商品描述(中文翻譯)

**描述**

由微軟軟體傳奇人物 Juval Lowy 所著的《Programming WCF Services》是對微軟新推出的、被認為是革命性的統一平台的權威介紹,該平台用於在 Windows 上開發面向服務的應用程式 (SOA)。這本書實用性極強,提供了洞見而非文檔,教導開發人員所需的知識,以構建下一代的 SOA。

在解釋了面向服務的應用設計優勢並教授如何使用 WCF 開發 SOA 的基本知識後,本書展示了如何利用內建功能,如服務託管、實例管理、非同步呼叫、同步、可靠性、交易管理、斷開的佇列呼叫和安全性,來構建最佳的應用程式。《Programming WCF Services》專注於特定設計決策背後的理由,常常揭示 SOA 開發中文檔不足和理解不深的方面。開發人員和架構師將學習到 WCF 編程的「如何」,以及相關的設計指南、最佳實踐和陷阱。作者在書中提供的原創技術和工具遠超過傳統來源所能找到的內容。

基於參與 WCF 的戰略設計和與實施團隊合作所獲得的經驗和洞見,《Programming WCF Services》為經驗豐富的專業人士提供了 WCF 的權威著作。這本書不僅會讓你成為 WCF 專家,還會讓你成為更好的軟體工程師。它是 WCF 的羅塞塔石。

**目錄**

**前言**

**序言**

**1. WCF 基礎**
- WCF 是什麼?
- 服務
- 地址
- 合約
- 託管
- 綁定
- 端點
- 元數據交換
- 客戶端編程
- 程式化配置與管理配置
- WCF 架構
- 與通道的互動
- 可靠性

**2. 服務合約**
- 操作重載
- 合約繼承
- 服務合約的分解與設計
- 合約查詢

**3. 數據合約**
- 序列化
- 數據合約屬性
- 數據合約層次結構
- 數據合約等價性
- 版本控制
- 列舉
- 委派與數據合約
- 數據集與表
- 泛型
- 集合

**4. 實例管理**
- 行為
- 每次呼叫服務
- 每次會話服務
- 單例服務
- 劃分操作
- 實例停用
- 限流

**5. 操作**
- 請求-回覆操作
- 單向操作
- 回調操作
- 事件
- 流式傳輸

**6. 錯誤**
- 錯誤與例外
- 錯誤合約
- 錯誤處理擴展

**7. 交易**
- 恢復挑戰
- 交易
- 交易傳播
- 交易協議與管理者
- 交易類
- 交易服務編程
- 明確交易編程
- 服務狀態管理
- 實例管理與交易
- 回調

**8. 並發管理**
- 實例管理與並發
- 服務並發模式
- 實例與並發訪問
- 資源與服務
- 資源同步上下文
- 服務同步上下文
- 自定義服務同步上下文
- 回調與客戶端安全
- 回調與同步上下文
- 非同步呼叫

**9. 佇列服務**
- 斷開的服務與客戶端
- 佇列呼叫
- 交易
- 實例管理
- 並發管理
- 傳遞失敗
- 播放失敗
- 佇列呼叫與連接呼叫
- 回應服務
- HTTP 橋接

**10. 安全性**
- 認證
- 授權
- 傳輸安全
- 身份管理
- 整體政策
- 情境驅動方法
- 內部網路應用
- 網際網路應用
- 商業對商業應用
- 匿名應用
- 無安全性
- 情境摘要
- 聲明式安全框架
- 安全審計

**A. 服務導向簡介**

**B. 發佈-訂閱服務**

**C. WCF 編碼標準**

**索引**