《Java Web Service教程(影印版)(附光盤)》以案例驅(qū)動的形式完整地講述如何運(yùn)用Java技術(shù)構(gòu)建Web Service應(yīng)用系統(tǒng)。本書介紹如何用Sun Microsystems提供的Java Web Service Developer Pack (WSDP)從初始階段進(jìn)行開發(fā)。這種適合于實(shí)際應(yīng)用的開發(fā)組件包含了構(gòu)建和實(shí)施完整的Web Service應(yīng)用系統(tǒng)所需的各種技術(shù)和手段。Web Service為企業(yè)運(yùn)用各種計算工具實(shí)現(xiàn)有效溝通提供了強(qiáng)有力的新方法。這種方法具有完全便攜式的數(shù)據(jù)模型,以在一種新的層次運(yùn)用Java平臺的“一次編程,到處運(yùn)行”的特性。為了支持最新的基于XML的 Web Service的標(biāo)準(zhǔn),針對XML應(yīng)用的Java API使得以最小手工轉(zhuǎn)換數(shù)據(jù)代價實(shí)現(xiàn)的 Web Service的構(gòu)造變得簡便易行。本指南性讀物詳盡地講解了這些API,并提供了加強(qiáng)讀者對主要概念理解的一些實(shí)例?!禞ava Web Service教程(影印版)(附光盤)》適用于Web Service的應(yīng)用系統(tǒng)的實(shí)現(xiàn)類課程。Stephanie Bodoff是Sun Microsystems公司的專職作家。曾在分布式計算和通信系統(tǒng)中任軟件工程師,并運(yùn)用面向?qū)ο筌浖_發(fā)方法實(shí)現(xiàn)多種應(yīng)用系統(tǒng)的設(shè)計。Maydene Fisher是經(jīng)驗(yàn)豐富的技術(shù)型作家,擅長面向?qū)ο蟪绦蛟O(shè)計語言的軟件開發(fā)文檔寫作。Dale Green是Sun Microsystems公司的專職作家,負(fù)責(zé)撰寫J2EE平臺文本。曾為商用系統(tǒng)開發(fā)程序,設(shè)計數(shù)據(jù)庫,講授技術(shù)型課程,現(xiàn)從事企業(yè)級JavaBeans技術(shù)和J2EE SDK等方面的寫作。Kim Haase是Sun Microsystems公司的專職作家,負(fù)責(zé)撰寫J2EE平臺文本。曾參與編譯器、調(diào)試器和基于浮點(diǎn)型數(shù)據(jù)的程序設(shè)計的開發(fā)工作,現(xiàn)從事Java Message Service和J2EE SDK工具等方面的寫作。內(nèi)容:1. Web Service簡介 2. 了解XML 3. 利用Tomcat開展初期工作 4. 用于XML數(shù)據(jù)處理的Java API 5. 用于XML的簡單API 6. 文檔對象模型 7. XML樣式表語言轉(zhuǎn)換 8. 用于XML信息處理的Java API 9. 用于基于XML的遠(yuǎn)程過程控制的Java API 10. 用于XML注冊的Java API 11. Java WSDP注冊服務(wù)器 12. 網(wǎng)絡(luò)應(yīng)用 13. Java Servlet技術(shù) 14. JSP技術(shù) 15. JSP頁中的JavaBeans組件 16. JSP頁中的自定義標(biāo)簽 17. JSP標(biāo)準(zhǔn)標(biāo)簽庫 18. xrpcc工具 19. HTTP概覽
作者簡介
Eric Armstrong has written professionally on artificial intelligence programs,system libraries,real-time programs,and business application.He is the author of The JBuilder 2 Bible.Stephanie Bodoff is a senior staff writer at Sun microsystems and the leader writer on the Java Web Services Tutorial .She is Coauthor of the J2EE Turorial,Designing Enterpries Applications with the J2EE plaftorm,and Objes-oriented Software Development:The Fusion Method.
圖書目錄
Foreword Preface 1 Introduction to Web Services 1.1 The Role of XML and the Java Platform 1.2 What Is XML? 1.3 Overview of the Java APIs for XML 1.4 JAXP 1.5 JAX-RPC 1.6 JAXM 1.7 JAXR 1.8 Sample Scenario 2 Understanding XML 2.1 Introduction to XML 2.2 XML and Related Specs:Digesting the Alphabet Soup 2.3 Designing an XML Data Structure 3 Getting Started with Tomcat 3.1 Setting Up 3.2 Creating the Getting Started Application 3.3 Building and Deploying the Getting Started Application Using Ant 3.4 Running the Getting Started Application 3.5 Modifying the Application 3.6 Common Problems and Their Solutions 4 Java API for XML Processing 4.1 The JAXP APIs 4.2 An Overview of the Packages 4.3 The Simple API for XML(SAX)APIs 4.4 The Document Object Model(DOM)APIs 4.5 The XML Stylesheet Language for Transformation(XSLT)APIs 4.6 Compiling and Running the Programs 4.7 Where Do You Go from Here? 5 Simple API for XML 5.1 Writing a Simple XML File 5.2 Defining the Root Element 5.3 Echoing an XML File with the SAX Parser 5.4 Adding Additional Event Handlers 5.5 Handling Errors with the Nonvalidating Parser 5.6 Substituting and Inserting Text 5.7 Creating a Document Type Definition(DTD) 5.8 DTD's Effect on the Nonvalidating Parser 5.9 Defining Attributes and Entities in the DTD 5.10 Referencing Binary Entities 5.11 Using the Validating Parser 5.12 Defining Parameter Entities and Conditional Sections 5.13 Parsing the Parameterized DTD 5.14 Handling Lexical Events 5.15 Using the DTDHandler and EntityResolver 6 Document Object Model 6.1 Reading XML Data into a DOM 6.2 Displaying a DOM Hierarchy 6.3 Examining the Structure of a DOM 6.4 Constructing a User-Friendly JTree from a DOM 6.5 Creating and Mainipluating a DOM 6.6 Using Namespaces 7 XML Stylesheet Language for Fransformations 7.1 Introducing XSLT and XPath 7.2 Writing Out a DOM as an XML File 7.3 Generating XML from an Arbitrary Data Structure 7.4 Transforming XML Data with XSLT 7.5 Concatenating XSLT Transformations with a Filter Chain 8 Java API for XML Messaging 8.1 Overview of JAXM 8.2 Running the Samples 8.3 Tutorial 8.4 Code Examples 9 Java API for XML-based RPC 9.1 What is JAX-RPC? 9.2 A Simple Example:Hello World 9.3 The Dynamic Invocation Interface 10 Java API for XML Registries 10.1 Overview of JAXR 10.2 Implementing a JAXR Client 10.3 Using the Registry Browser 11 The Java WSDP Registry Server 11.1 Setting Up the Registry Server 11.2 Using the JAXR Registry Browser with the Registry Server 11.3 Using the Command Line Client Scripts with the Registry Server 11.4 Using the JAXR API to Access the Registry Server 11.5 Using the Indri Tool to Access the Registry Server Database 12 Web Applications 12.1 Web Applications Life Cycle 12.2 Web Applications Archives 12.3 Web Applications Deployment Descriptors 12.4 Deploying Web Applications 12.5 Running Web Applications 12.6 Updating Web Applications 12.7 Internationalizing and Localizing Web Applications 12.8 Accessing Database from Web Applications 13 Java Servlet Technology 13.1 What is a Servlet? 13.2 The Example Servlets 13.3 Servlet Life Cycle 13.4 Sharing Information 13.5 Initializing a Servlet 13.6 Writing Service Methods 13.7 Filtering Requests and Responses 13.8 Invoking Other Web Resources 13.9 Accessing the Web Context 13.10 Maintaining Client State 13.11 Finalizing a Servlet 14 JavaServer Pages Technology 14.1 What is a JSP Page? 14.2 The Example JSP Pages 14.3 The Life Cycle of a JSP Page 14.4 Initializing and Finalizing a JSP Page 14.5 Creating Static Content 14.6 Creating Dynamic Content 14.7 Indluding Content in a JSP Page 14.8 Transferring Content in a JSP Page 14.9 Including an Applet 14.10 Extending the JSP Language 15 JavaBeans Components in JSP Pages 15.1 JavaBeans Components Design Conventions 15.2 Why Use a JavaBeans Component? 15.3 Creating and Using a JavaBeans Components 15.4 Setting JavaBeans Components Properties 15.5 Retrieving JavaBeans Components Properties 16 Custom Tags in JSP Pages 16.1 What is a Custom Tag? 16.2 The Example JSP Pages 16.3 Using Tags 16.4 Defining Tags 16.5 Examples 17 JavaServer Pages Standard Tag Library 17.1 The Example JSP Pages 17.2 Using JSTL 17.3 Expression Language Support 17.4 Core Tags 17.5 XML Tags 17.6 Internationalization Tags 17.7 SQL Tags 18 The xrpcc Tool 18.1 Syntax 18.2 Configuration File 19 HTTP Overview 19.1 HTTP Requests 19.2 HTTP Responses Appendix Java Encoding Schemes About the Authors Index