did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

did-you-know? rent-now

Amazon no longer offers textbook rentals. We do!

We're the #1 textbook rental company. Let us show you why.

9780201768114

Java Web Services Tutorial : Early Access Edition

by ; ; ; ; ;
  • ISBN13:

    9780201768114

  • ISBN10:

    0201768119

  • Edition: CD
  • Format: Paperback w/CD
  • Copyright: 2002-01-01
  • Publisher: Addison-Wesley Professional
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $44.99
We're Sorry.
No Options Available at This Time.

Summary

A beginner's guide to developing web services and web applications using the Java web services developer pack. This complete, ready to use package includes a variety of technologies and tools required to build and deploy comprehensive Web services applications today. Softcover. CD-ROM included.

Author Biography

Eric Armstrong has written professionally on artificial intelligence (AI) programs, system libraries, real-time programs, and business applications Stephanie Bodoff is a senior staff writer at Sun Microsystems Debbie Carson is a staff writer with Sun Microsystems Maydene Fisher has authored two books on the JDBC API, JDBC Database Access with Java and JDBC API Tutorial and Reference, Second Edition. She wrote documentation for the ScriptX language at Kaleida Labs and for complex financial models written in C++ on Wall Street Dale Green is a senior staff writer with Sun Microsystems Kim Haase is a staff writer with Sun Microsystems

Table of Contents

Foreword xvii
Preface xix
Introduction to Web Services
1(28)
The Role of XML and the Java Platform
2(1)
What Is XML?
3(3)
What Makes XML Portable?
5(1)
Overview of the Java APIs for XML
6(1)
JAXP
7(7)
The SAX API
7(3)
The DOM API
10(2)
The XSLT API
12(2)
JAX-RPC
14(2)
Using JAX-RPC
15(1)
JAXM
16(6)
Getting a Connection
18(1)
Creating a Message
19(1)
Populating a Message
20(2)
Sending a Message
22(1)
JAXR
22(3)
Using JAXR
23(2)
Sample Scenario
25(4)
Scenario
25(2)
Conclusion
27(2)
Understanding XML
29(26)
Introduction to XML
29(10)
What Is XML?
29(5)
Why Is XML Important?
34(2)
How Can You Use XML?
36(3)
XML and Related Specs: Digesting the Alphabet Soup
39(9)
Basic Standards
40(2)
Schema Standards
42(2)
Linking and Presentation Standards
44(2)
Knowledge Standards
46(1)
Standards That Build on XML
47(1)
Summary
48(1)
Designing an XML Data Structure
48(7)
Saving Yourself Some Work
48(1)
Attributes and Elements
49(2)
Normalizing Data
51(2)
Normalizing DTDs
53(2)
Getting Started with Tomcat
55(12)
Setting Up
55(2)
Getting the Example Code
56(1)
Checking the Environment Variables
56(1)
Creating the Getting Started Application
57(2)
The Converter Class
57(1)
The Web Client
58(1)
Building and Deploying the Getting Started Application Using Ant
59(3)
Setting the CLASSPATH
59(1)
Creating the Build File for Ant
60(1)
Compiling the Source Files
61(1)
Deploying the Application
62(1)
Running the Getting Started Application
62(2)
Starting Tomcat
62(1)
Running the Web Client
63(1)
Shutting Down Tomcat
63(1)
Modifying the Application
64(1)
Modifying a Class File
64(1)
Modifying the Web Client
64(1)
Reloading the Application
64(1)
Common Problems and Their Solutions
65(2)
Cannot Start the Tomcat Server
65(1)
Compilation Errors
65(1)
Deployment Errors
66(1)
Java API for XML Processing
67(10)
The JAXP APIs
68(1)
An Overview of the Packages
68(1)
The Simple API for XML (SAX) APIs
69(3)
The SAX Packages
71(1)
The Document Object Model (DOM) APIs
72(1)
The DOM Packages
73(1)
The XML Stylesheet Language for Transformation (XSLT) APIs
73(2)
The XSLT Packages
74(1)
Compiling and Running the Programs
75(1)
Where Do You Go from Here?
75(2)
Simple API for XML
77(72)
Writing a Simple XML File
78(1)
Creating the File
79(1)
Writing the Declaration
79(1)
Adding a Comment
79(1)
Defining the Root Element
79(4)
Adding Nested Elements
81(1)
Adding HTML-Style Text
81(1)
Adding an Empty Element
82(1)
The Finished Product
83(1)
Echoing an XML File with the SAX Parser
83(14)
Creating the Skeleton
84(1)
Importing Classes
84(1)
Setting up for I/O
85(1)
Implementing the ContentHandler Interface
85(1)
Setting up the Parser
86(1)
Writing the Output
87(1)
Spacing the Output
88(1)
Handling Content Events
89(2)
Compiling and Running the Program
91(1)
Checking the Output
92(1)
Identifying the Events
92(2)
Compressing the Output
94(2)
Inspecting the Output
96(1)
Documents and Data
97(1)
Adding Additional Event Handlers
97(4)
Identifying the Document's Location
98(1)
Handling Processing Instructions
99(2)
Summary
101(1)
Handling Errors with the Nonvalidating Parser
101(9)
Substituting and Inserting Text
110(4)
Handling Special Characters
110(1)
Using an Entity Reference in an XML Document
111(1)
Handling Text with XML-Style Syntax
112(2)
Handling CDATA and Other Characters
114(1)
Creating a Document Type Definition (DTD)
114(5)
Basic DTD Definitions
114(2)
Defining Text and Nested Elements
116(1)
Limitations of DTDs
116(1)
Special Element Values in the DTD
117(1)
Referencing the DTD
117(2)
DTD's Effect on the Nonvalidating Parser
119(3)
Tracking Ignorable Whitespace
119(2)
Cleanup
121(1)
Documents and Data
121(1)
Empty Elements, Revisited
122(1)
Defining Attributes and Entities in the DTD
122(6)
Defining Attributes in the DTD
122(2)
Defining Entities in the DTD
124(2)
Echoing the Entity References
126(1)
Additional Useful Entities
126(1)
Referencing External Entities
126(1)
Echoing the External Entity
127(1)
Summarizing Entities
128(1)
Referencing Binary Entities
128(2)
Using a MIME Data Type
128(2)
The Alternative: Using Entity References
130(1)
Using the Validating Parser
130(4)
Configuring the Factory
130(1)
Changing the Environment Variable
131(1)
Experimenting with Validation Errors
131(2)
Error Handling in the Validating Parser
133(1)
Defining Parameter Entities and Conditional Sections
134(3)
Creating and Referencing a Parameter Entity
134(2)
Conditional Sections
136(1)
Parsing the Parameterized DTD
137(3)
DTD Warnings
139(1)
Handling Lexical Events
140(7)
How the LexicalHandler Works
140(1)
Working with a LexicalHandler
141(6)
Using the DTDHandler and EntityResolver
147(2)
The DTDHandler API
147(1)
The EntityResolver API
148(1)
Document Object Model
149(54)
Reading XML Data into a DOM
150(6)
Creating the Program
150(4)
Additional Information
154(2)
Looking Ahead
156(1)
Displaying a DOM Hierarchy
156(16)
Echoing Tree Nodes
157(1)
Convert DomEcho to a GUI App
157(6)
Create Adapters to Display the DOM in a JTree
163(9)
Finishing Up
172(1)
Examining the Structure of a DOM
172(6)
Displaying A Simple Tree
173(2)
Displaying a More Complex Tree
175(2)
Finishing Up
177(1)
Constructing a User-Friendly JTree from a DOM
178(15)
Compressing the Tree View
178(1)
Acting on Tree Selections
178(15)
Handling Modifications
193(1)
Finishing Up
193(1)
Creating and Manipulating a DOM
193(6)
Obtaining a DOM from the Factory
193(4)
Normalizing the DOM
197(1)
Other Operations
198(1)
Finishing Up
199(1)
Using Namespaces
199(4)
Defining a Namespace
200(1)
Referencing a Namespace
200(1)
Defining a Namespace Prefix
201(2)
XML Stylesheet Language for Transformations
203(62)
Introducing XSLT and XPath
204(10)
The XSLT Packages
205(1)
How XPath Works
205(8)
Summary
213(1)
Writing Out a DOM as an XML File
214(6)
Reading the XML
214(1)
Creating a Transformer
215(2)
Writing the XML
217(1)
Writing Out a Subtree of the DOM
218(2)
Summary
220(1)
Generating XML from an Arbitrary Data Structure
220(13)
Creating a Simple File
220(2)
Creating a Simple Parser
222(3)
Modifying the Parser to Generate SAX Events
225(5)
Using the Parser as a SAXSource
230(3)
Doing the Conversion
233(1)
Transforming XML Data with XSLT
233(25)
Defining an Ultra-Simple Article Document Type
234(2)
Creating a Test Document
236(1)
Writing an XSLT Transform
237(1)
Processing the Basic Structure Elements
238(3)
Writing the Basic Program
241(2)
Trimming the Whitespace
243(3)
Processing the Remaining Structure Elements
246(4)
Process Inline (Content) Elements
250(5)
Printing the HTML
255(1)
What Else Can XSLT Do?
255(3)
Concatenating XSLT Transformations with a Filter Chain
258(7)
Writing the Program
258(3)
Understanding How it Works
261(1)
Testing the Program
262(2)
Conclusion
264(1)
Java API for XML Messaging
265(40)
Overview of JAXM
266(7)
Messages
266(2)
Connections
268(2)
Messaging Providers
270(3)
Running the Samples
273(3)
The Sample Programs
273(2)
The Provider Administration Tool
275(1)
Tutorial
276(16)
Client without a Messaging Provider
276(7)
Client with a Messaging Provider
283(6)
Adding Attachments
289(3)
Code Examples
292(13)
Request.java
292(2)
MyUddiPing.java
294(11)
Java API for XML-based RPC
305(18)
What is JAX-RPC?
306(1)
A Simple Example: HelloWorld
306(11)
HelloWorld at Runtime
306(2)
HelloWorld Files
308(1)
Overview of Steps
308(1)
Setting Up
309(1)
Coding the Service Definition Interface and Implementation Class
309(1)
Compiling the Service Definition Code
310(1)
Creating the Configuration File
310(1)
Generating the Stubs and Ties
311(1)
Creating the Deployment Descriptor
312(1)
Packaging the Service Definition
313(1)
Deploying the Service Definition
314(1)
Coding the Client
315(1)
Compiling the Client Code
316(1)
Running the Client
316(1)
The Dynamic Invocation Interface
317(6)
When to Use DII
317(1)
A DII Client Example
318(5)
Java API for XML Registries
323(20)
Overview of JAXR
323(3)
What is a Registry?
324(1)
What Is JAXR?
324(1)
JAXR Architecture
325(1)
Implementing a JAXR Client
326(11)
Establishing a Connection
327(1)
Querying a Registry
328(3)
Managing Registry Data
331(5)
Running the Client Examples
336(1)
Using the Registry Browser
337(6)
Querying a Registry
337
Managing Registry Data
318(25)
The Java WSDP Registry Server
343(8)
Setting Up the Registry Server
344(1)
Using the JAXR Registry Browser with the Registry Server
345(1)
Adding Organizations
345(1)
Querying the Registry
345(1)
Using the Command Line Client Scripts with the Registry Server
345(2)
Using the JAXR API to Access the Registry Server
347(1)
Using the Indri Tool to Access the Registry Server Database
347(4)
Web Applications
351(16)
Web Application Life Cycle
352(2)
Web Application Archives
354(1)
Creating a WAR File
354(1)
Web Application Deployment Descriptors
355(3)
Prolog
355(1)
Context Parameters
355(1)
Filter Mappings
356(1)
Event Listeners
356(1)
Alias Paths
356(1)
Error Mappings
357(1)
References to Environment Entries, Resource Environment Entries, or Resources
358(1)
Deploying Web Applications
358(2)
Specifying the Web Application Context
358(1)
Example
359(1)
Running Web Applications
360(1)
Updating Web Applications
360(1)
Internationalizing and Localizing Web Applications
361(2)
Accessing Databases from Web Applications
363(4)
The Examples
363(1)
Downloading and Starting the Database Server
363(1)
Populating the Database
364(1)
Configuring the Web Application to Use the Database
364(1)
Configuring the Server to Recognize the Database
364(3)
Java Servlet Technology
367(34)
What is a Servlet?
368(1)
The Example Servlets
368(2)
Troubleshooting
369(1)
Servlet Life Cycle
370(3)
Handling Servlet Life Cycle Events
370(2)
Handling Errors
372(1)
Sharing Information
373(4)
Using Scope Objects
373(1)
Controlling Concurrent Access to Shared Resources
374(2)
Accessing Databases
376(1)
Initializing a Servlet
377(1)
Writing Service Methods
377(6)
Getting Information From Requests
378(2)
Constructing Responses
380(3)
Filtering Requests and Responses
383(6)
Programming Filters
383(2)
Programming Customized Requests and Responses
385(2)
Specifying Filter Mappings
387(2)
Invoking Other Web Resources
389(3)
Including Other Resources in the Response
390(2)
Transferring Control to Another Web Component
392(1)
Accessing the Web Context
392(1)
Maintaining Client State
393(3)
Accessing a Session
394(1)
Associating Attributes with a Session
394(1)
Session Management
395(1)
Session Tracking
396(1)
Finalizing a Servlet
396(5)
Tracking Service Requests
397(1)
Notifying Methods to Shut Down
398(1)
Creating Polite Long-Running Methods
399(2)
JavaServer Pages Technology
401(22)
What is a JSP Page?
402(2)
The Example JSP Pages
404(2)
The Life Cycle of a JSP Page
406(3)
Translation and Compilation
406(2)
Execution
408(1)
Initializing and Finalizing a JSP Page
409(1)
Creating Static Content
410(1)
Creating Dynamic Content
410(6)
Using Objects Within JSP Pages
410(2)
JSP Scripting Elements
412(4)
Including Content in a JSP Page
416(1)
Transferring Control to Another Web Component
417(1)
Param Element
417(1)
Including an Applet
418(2)
Extending the JSP Language
420(3)
JavaBeans Components in JSP Pages
423(8)
JavaBeans Component Design Conventions
424(1)
Why Use a JavaBeans Component?
425(1)
Creating and Using a JavaBeans Component
426(1)
Setting JavaBeans Component Properties
426(3)
Retrieving JavaBeans Component Properties
429(2)
Custom Tags in JSP Pages
431(34)
What is a Custom Tag?
432(1)
The Example JSP Pages
432(2)
Using Tags
434(4)
Declaring Tag Libraries
435(1)
Making the Tag Library Implementation Available
436(1)
Types of Tags
436(2)
Defining Tags
438(15)
Tag Handlers
439(1)
Tag Library Descriptors
440(2)
Simple Tags
442(1)
Tags with Attributes
443(3)
Tags with Bodies
446(2)
Tags That Define Scripting Variables
448(3)
Cooperating Tags
451(2)
Examples
453(12)
An Iteration Tag
453(5)
A Template Tag Library
458(5)
How Is a Tag Handler Invoked?
463(2)
JavaServer Pages Standard Tag Library
465(20)
The Example JSP Pages
466(1)
Using JSTL
467(2)
Expression Language Support
469(4)
Twin Libraries
470(1)
Specifying an Expression Language Evaluator
470(1)
Simplest Possible Expression Language (SPEL)
471(1)
Tag Collaboration
472(1)
Core Tags
473(4)
Expression Tags
474(1)
Flow Control Tags
474(2)
Import Tags
476(1)
XML Tags
477(1)
Core Tags
477(1)
Flow Control Tags
478(1)
Transformation Tags
478(1)
Internationalization Tags
478(2)
Messaging Tags
479(1)
Formatting Tags
480(1)
SQL Tags
480(5)
Query Tag Result-Related Interfaces
481(4)
The xrpcc Tool
485(6)
Syntax
485(1)
Configuration File
486(5)
Starting with RMI Interfaces
487(1)
Starting with a WSDL Document
488(2)
Specifying the Type Mapping
490(1)
HTTP Overview
491(2)
HTTP Requests
492(1)
HTTP Responses
492(1)
Appendix Java Encoding Schemes 493(2)
About the Authors 495(2)
Index 497

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program