Building Web Services with Java : Making Sense of XML, SOAP, WSDL, and UDDI, 2/e
暫譯: 使用 Java 建立網路服務:理解 XML、SOAP、WSDL 和 UDDI,第二版

Steve Graham, Doug Davis, Simeon Simeonov, Glen Daniels, Peter Brittenham, Yuichi Nakamura, Paul Fremantle, Dieter Koenig, Claudia Zentner

  • 出版商: SAMS
  • 出版日期: 2004-06-01
  • 售價: $2,580
  • 貴賓價: 9.5$2,451
  • 語言: 英文
  • 頁數: 816
  • 裝訂: Paperback
  • ISBN: 0672326418
  • ISBN-13: 9780672326417
  • 相關分類: Java 程式語言SOAXML
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述

Description:

Written by the team that helped create XML and Web services standards, updated for the next generation of tools and standards. These authors are the architects of core Web services standards including SOAP and UDDI. The second edition of this well-reviewed book includes the newest standards for managing security, transactions, reliability, and interoperability in Web services applications, plus Apache Axis and the new Java APIs from Sun.

It takes you beyond the hype, detailing the design and implementation of a production-quality Web services solution. The authors go beyond the specifications and provide meaningful insights into both how and why these tools were designed as they are. This revised edition covers the new SOAP 1.2 and WSDL 1.2 standards, as well as other technologies developed since the first edition was published, including the Java Web Services Developer Pack from Sun and the powerful Apache Axis Web services engine. Throughout the book the authors focus on practical examples of each concept and provide a running example illustrating a full enterprise solution.

 

Table of Contents:

Introduction.

I. WEB SERVICES BASICS.

1. Web Services Overview and Service-Oriented Architectures.

What Is a Web Service?

Service-Oriented Architectures.

Trends in E-Business.

Why Do We Need Web Services?

The Web Service Opportunity.

Justifying Web Services.

Web Services Interoperability Stack.

Summary.

2. XML Primer.

Document- Versus Data-Centric XML.

XML Instances.

XML Namespaces.

XML Schemas.

Processing XML.

Summary.

Resources.

3. The SOAP Protocol.

Simple Object Access Protocol (SOAP).

Doing Business with SkatesTown.

Inventory Check Web Service.

A Closer Look at SOAP.

The SOAP Messaging Framework.

SOAP Intermediaries.

The SOAP Body.

The SOAP Processing Model.

Versioning in SOAP.

Processing Headers and Bodies.

Faults: Error Handling in SOAP.

Objects in XML: The SOAP Data Model.

The SOAP RPC Conventions.

XML, Straight Up: Document-Style SOAP.

When to Use Which Style.

The Transport Binding Framework.

Using SOAP to Send Binary Data.

Small-Scale SOAP, Big-Time SOAP.

Summary.

Resources.

4. Describing Web Services.

Why Service Descriptions?

Role of Service Description in a Service-Oriented Architecture.

Well-Defined Service.

History of Interface Definition Languages (IDLs).

Web Services Description Language (WSDL).

A Sketch of How WSDL Maps to Java.

Nonfunctional Descriptions in WSDL.

Standardizing WSDL: W3C and WSDL 2.0.

Summary.

Resources.

5. Implementing Web Services with _Apache Axis.

A Brief History of Axis.

Axis Architecture.

The Message APIs and SAAJ.

The Axis Client APIs.

Web Service Deployment Descriptor (WSDD).

Building Services.

A Guide to Web Service Styles.

From XML to Java and Back Again: The Axis Type-Mapping System.

When Things Go Wrong: Faults and Exceptions.

Axis as an Intermediary.

How to Write a Handler.

Built-in Security.

Understanding Axis Transport s.

No API Is an Island: Axis and Its Environment.

Development/Debugging Tools.

Axis Futures: A Quick Tour.

Participating in the Axis Community.

Summary.

Resources.

6. Discovering Web Services.

What Is Service Discovery?

UDDI (Universal Description, Discovery, _and Integration) .

Other Service Discovery Methods.

Summary.

Resources.

II. ENTERPRISE WEB SERVICES

7. Web Services and J2EE.

J2EE Overview.

Using EJBs from Axis.

Using JSR109: Implementing _Enterprise Web Services.

Summary.

Resources.

8. Web Services and _Stateful Resources.

Web Services and State.

WS-Resources.

Stateful Resources.

Modeling Resource Properties.

Using Notifications.

Resource Lifetime.

Other WS-Resource Framework Specifications.

Summary.

9. Securing Web Services.

Example Scenario.

Security Basics.

Web Services Security.

WS-Security.

WS-Trust.

WS-SecurityPolicy.

WS-SecureConversation.

WS-Federation.

Enterprise Security.

J2EE Security.

Authorization in J2EE.

J2EE and Web Services Security.

Security Services.

Summary.

Resources.

10. Web Services Reliable Messaging.

Background of the Web Services Reliable Messaging Protocol (WS-RM).

The WS-RM Specification.

WS-RM Processing Model.

Client-Side Processing.

Server-Side Processing.

Sequence Faults.

Policy Assertions.

SpecVersion Assertion .

DeliveryAssurance Policy.

SequenceExpiration Policy.

InactivityTimeout Assertion.

BaseRetransmissionInterval _Assertion.

AcknowledgementInterval Assertion.

SequenceRef Element.

Flaws and Other Thoughts on the WS-RM Spec.

Putting WS-RM into Use.

Summary.

Resources.

11. Web Services Transactions.

Web Services Coordination and Transaction _(WS-C/Tx).

Transactions: A Brief Introduction.

WS-Coordination.

The CoordinationContext .

The CreateCoordinationContext _Operation.

The Register Operation.

WS-Coordination Fault Codes.

WS-Transaction: Atomic Transactions.

WS-AT Operations.

Commit and Rollback.

AT Protocols.

Two-Phase Commit Protocols.

Committing the Transaction.

Transaction Flow Overview.

Business Activity Protocol.

Reliable Delivery and Security.

Summary.

Resources.

12. Orchestrating Web Services.

Why Are We Composing Web Services?

Two-Level Programming Model.

Stateless and Stateful Web Services.

Evolution of Business Process Languages.

SkatesTown Requirements.

Business Process Execution Language for _Web Services.

Design Goals.

External Interface of a Process.

Overall Structure of a Process.

Basic and Structured Activities.

Process Lifecycle and Related Activities.

Partner Links .

Properties and Correlation Sets.

Invoking Web Services and Providing Web Services.

Data Handling and Related Activities .

More Basic Activities: wait , empty .

Flows.

More Structured Activities: sequence , while , switch , scope .

Fault Handling .

Compensation Handling .

Event Handling .

SkatesTown: Putting It All Together.

Advanced Considerations.

Abstract Processes.

Language Extensibility.

Summary.

Resources.

III. WEB SERVICES IN THE REAL WORLD

13. Web Services Interoperability.

Web Services Interoperability Organization.

WS-I Basic Profile 1.0.

Common Requirements for SOAP Envelope, WSDL Document, and XML Schema _Document.

Understanding the WSDL Document _Structure.

Importing XML Schema and WSDL _Documents.

Defining the Service Interface.

Defining a SOAP Binding.

Publishing a Service Description.

HTTP and SOAP Message Content.

Web Service Security.

WS-I Conformance Claims.

Service Provider, Requestor, and Registry Requirements.

Summary of Basic Profile 1.0 Requirements.

Future WS-I Profiles.

Basic Profile 1.1.

Simple SOAP Binding Profile 1.0.

Attachments Profile 1.0.

Basic Security Profile 1.0.

WS-I Sample Applications.

WS-I Test Tools.

Monitor Overview.

Monitor Configuration File.

Message Log File.

Analyzer Overview.

Analyzer Configuration File.

Test Assertion Document.

Profile Configuration Report.

Summary.

Resources.

14. Web Services Pragmatics.

Enterprise Adoption of Web Services.

Time-Based Adoption Challenges.

Inherent Limitations of SOA.

Top-Down Versus Bottom-Up.

Policies and Processes.

Putting Web Services in Production.

Web Services Technology Map.

System Architectures for Web Services.

Features, Capabilities, and Approaches.

Tools and Platforms.

SOA Testing.

Deployment and Provisioning.

Business Process Automation Using Web _Services.

Operations.

Summary.

Resources.

15. Epilogue: Web Services Futures.

A Roadmap for Web Services.

Age of Invention (Base SOAP, WSDL, _UDDI).

Age of Development (from Hype to _Delivery).

Age of Mainstream Acceptance (Web _Services Become Boring).

Future Trends in Web Services.

Short-Term Trends and Issues.

Medium-Term Trends.

Longer-Term Trends.

Summary.

Appendix A:- Glossary.

Index.

商品描述(中文翻譯)

**描述:**
由幫助創建 XML 和 Web 服務標準的團隊撰寫,更新為下一代工具和標準。這些作者是核心 Web 服務標準的架構師,包括 SOAP 和 UDDI。本書的第二版包含了最新的標準,用於管理 Web 服務應用中的安全性、交易、可靠性和互操作性,以及 Apache Axis 和來自 Sun 的新 Java API。

本書超越了炒作,詳細說明了生產級 Web 服務解決方案的設計和實施。作者不僅僅停留在規範上,還提供了有意義的見解,解釋這些工具為何以及如何被設計。本修訂版涵蓋了新的 SOAP 1.2 和 WSDL 1.2 標準,以及自第一版出版以來開發的其他技術,包括來自 Sun 的 Java Web Services Developer Pack 和強大的 Apache Axis Web 服務引擎。在整本書中,作者專注於每個概念的實際範例,並提供一個運行範例,說明完整的企業解決方案。

**目錄:**
**引言。**
**I. WEB 服務基礎。**
1. Web 服務概述和面向服務的架構。
- 什麼是 Web 服務?
- 面向服務的架構。
- 電子商務的趨勢。
- 我們為什麼需要 Web 服務?
- Web 服務的機會。
- 證明 Web 服務的必要性。
- Web 服務互操作性堆疊。
- 總結。
2. XML 入門。
- 文件導向與數據導向的 XML。
- XML 實例。
- XML 命名空間。
- XML 架構。
- 處理 XML。
- 總結。
- 資源。
3. SOAP 協議。
- 簡單物件存取協議 (SOAP)。
- 與 SkatesTown 進行業務。
- 庫存檢查 Web 服務。
- 更深入了解 SOAP。
- SOAP 訊息框架。
- SOAP 中介。
- SOAP 主體。
- SOAP 處理模型。
- SOAP 中的版本控制。
- 處理標頭和主體。
- 錯誤:SOAP 中的錯誤處理。
- XML 中的物件:SOAP 數據模型。
- SOAP RPC 約定。
- 直接使用 XML:文檔風格的 SOAP。
- 何時使用哪種風格。
- 傳輸綁定框架。
- 使用 SOAP 發送二進位數據。
- 小規模 SOAP,大規模 SOAP。
- 總結。
- 資源。
4. 描述 Web 服務。
- 為什麼需要服務描述?
- 服務描述在面向服務的架構中的角色。
- 明確定義的服務。
- 介面定義語言 (IDL) 的歷史。
- Web 服務描述語言 (WSDL)。
- WSDL 如何映射到 Java 的簡要概述。
- WSDL 中的非功能性描述。
- 標準化 WSDL:W3C 和 WSDL 2.0。
- 總結。
- 資源。
5. 使用 Apache Axis 實現 Web 服務。
- Axis 的簡史。
- Axis 架構。
- 訊息 API 和 SAAJ。
- Axis 客戶端 API。
- Web 服務部署描述符 (WSDD)。
- 建立服務。
- Web 服務風格指南。
- 從 XML 到 Java 再回來:Axis 類型映射系統。
- 當事情出錯時:錯誤和例外。
- Axis 作為中介。
- 如何編寫處理器。
- 內建安全性。
- 理解 Axis 傳輸。
- 沒有 API 是孤島:Axis 及其環境。
- 開發/調試工具。
- Axis 未來:快速導覽。
- 參與 Axis 社區。
- 總結。
- 資源。
6. 發現 Web 服務。
- 什麼是服務發現?
- UDDI(通用描述、發現和整合)。
- 其他服務發現方法。
- 總結。
- 資源。
**II. 企業 Web 服務**
7. Web 服務與 J2EE。
- J2EE 概述。
- 從 Axis 使用 EJB。
- 使用 JSR109:實現企業 Web 服務。
- 總結。
- 資源。
8. Web 服務與有狀態資源。
- Web 服務與狀態。
- WS-資源。
- 有狀態資源。
- 建模資源屬性。
- 使用通知。
- 資源生命週期。
- 其他 WS-資源框架規範。
- 總結。
9. 保護 Web 服務。
- 示例場景。
- 安全性基礎。
- Web 服務安全性。
- WS-Security。
- WS-Trust。
- WS-SecurityPolicy。
- WS-SecureConversation。
- WS-Federation。
- 企業安全性。
- J2EE 安全性。
- J2EE 中的授權。
- J2EE 和 Web 服務安全性。
- 安全服務。
- 總結。
- 資源。
10. Web 服務可靠訊息傳遞。
- Web 服務可靠訊息傳遞協議 (WS-RM) 的背景。
- WS-RM 規範。
- WS-RM 處理模型。
- 客戶端處理。
- 伺服器端處理。
- 序列錯誤。
- 政策聲明。
- SpecVersion 聲明。
- DeliveryAssurance 政策。
- SequenceExpiration 政策。
- InactivityTimeout 聲明。
- BaseRetransmissionInterval 聲明。
- AcknowledgementInterval 聲明。
- SequenceRef 元素。
- WS-RM 規範的缺陷和其他想法。
- 將 WS-RM 實際應用。
- 總結。
- 資源。
11. Web 服務交易。
- Web 服務協調和交易 (WS-C/Tx)。
- 交易:簡要介紹。
- WS-協調。
- CoordinationContext。
- CreateCoordinationContext 操作。
- 註冊操作。
- WS-協調錯誤代碼。
- WS-交易:原子交易。
- WS-AT 操作。
- 提交和回滾。
- AT 協議。
- 二階段提交。