|2020ok Directory of FREE Online Books and FREE eBooks|
Java Web Services Tutorial
by Eric Armstrong, Stephanie Bodoff, Debbie Carson, and Maydene Fisher
(Respecting the intellectual property of others is utmost important to us, we make every effort to make sure we only link to legitimate sites, such as those sites owned by authors and publishers. If you have any questions about these links, please contact us.)
Following in the successful tradition of previous Java Series Tutorials, The Javaâ¢TM Web Services Tutorial, Early Access Edition, offers an essential, example-driven resource for every programmer interested in developing and deploying web services and web applications with the Java WSDP. The authors - senior documentation specialists at Sun - offer a concise, all-in-one guide covering the key technologies for building Web services using the Java 2 Platform. They provide practical techniques and examples for working with Javaâ¢(tm) Servlets, JSPâ¢TM, JSTL and the Java XML Pack to get programmers up to speed. This tutorial is packed with practical examples to reinforce key concepts. Both the tutorial and Sun Microsystems' Web Services Pack are included on the accompanying CD-ROM.
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.
From the Back Cover
The Javaâ¢ Web Services Tutorial is a comprehensive, example-driven, "roll up your sleeves and dive in" guide to building Web services applications with Javaâ¢ technology. This edition provides a head start on using the Java Web Services Developer Pack (WSDP) from Sun Microsystems. This complete, ready-to-use package includes a variety of technologies and tools required to build and deploy comprehensive Web services applications today.
Web services offer powerful new ways for enterprises to effectively communicate with each other using diverse computing hardware. This paradigm takes the Java platform's "Write Once, Run Anywhereâ¢" capabilities to a new level by providing a completely portable data model. By supporting the latest standards for XML-based Web services, the Java APIs for XML make it easy to build Web services with minimal hand tweaking of data. This tutorial explains these APIs in detail and provides practical examples to reinforce your understanding of key concepts.
The accompanying CD-ROM includes:
This package also includes instructions for deploying Web services applications on the Java 2 SDK, Enterprise Edition.
About the Author
Stephanie Bodoff is a staff writer at Sun Microsystems. In previous positions she worked as a software engineer on distributed computing and telecommunications systems and object-oriented software development methods. Since her conversion to technical writing, Stephanie has documented object-oriented databases, application servers, and enterprise application development methods.
Maydene Fisher, a native of San Jose, California, specializes in object-oriented languages. She has experience spanning both coasts of the United States, having documented everything from complex financial models on Wall Street to Java APIs in Silicon Valley.
Dale Green is a staff writer with Sun Microsystems, where he documents the J2EE platform. In previous positions he programmed business applications, designed databases, taught technical classes, and documented RDBMS products. In his current position he writes about Enterprise JavaBeans technology and the J2EE SDK.
Kim Haase is a staff writer with Sun Microsystems, where she documents the J2EE platform. In previous positions she has documented compilers, debuggers, and floating-point programming. She currently writes about the Java Message Service and J2EE SDK tools.
Excerpt. © Reprinted by permission. All rights reserved.
The Java™ Web Services Tutorial is a beginner's guide to developing Web services and Web applications using the Java Web Services Developer Pack (Java WSDP). The Java WSDP is an all-in-one download containing key technologies to simplify building of Web services using the Java 2 Platform. The technologies available on the Java WSDP are:
To provide a development and deployment environment, the Java WSDP includes the:
Here we cover all the things you need to know to make the best use of The Java™ Web Services Tutorial.
Who Should Use This Tutorial
This tutorial is intended for programmers interested in developing and deploying Web services and Web applications on the Java WSDP.
About the Examples
This tutorial includes many complete, working examples.
Prerequisites for the Examples
Running the Examples
This section tells you everything you need to know to obtain, build, deploy, and run the examples.
Once you have installed the tutorial bundle, the example source code is in the <JWSDP_HOME>/docs/tutorial/examples directory, with subdirectories for each of the technologies included in the pack.
This tutorial documents the Java WSDP EA1. To build, deploy, and run the examples you need a copy of the Java WSDP and the Java 2 Platform, Standard Edition (J2SE™) SDK 1.3.1 or 1.4. You can download the Java WSDP from:http://java.sun.com/webservices/downloads/webservicespack.html
or the J2SE 1.4 SDK from:http://java.sun.com/j2se/1.4/
Building the Examples
Most of the examples are distributed with a configuration file for version 1.4.1 of ant, a portable build tool contained in the Java WSDP. Directions for building the examples are provided in each chapter.
Deploying the Examples
Most of the Java WSDP examples run on Tomcat. Before you can run an example you must first deploy it on Tomcat. To deploy an application execute ant deploy. The deploy task usually copies some files into the <JWSDP_HOME>/webapps directory. Some things you need to keep in mind:
You run Tomcat by executing the startup script in a terminal window.
Reloading the Examples
You reload an application with the command:
This command invokes the manager Web application. Before you can use this application you must add your user name and password combination and associate the role name manager with it to <JWSDP_HOME>/conf/tomcat-users.xml, which can be edited with any text editor. This file contains an element <user> for each individual user, which might look something like this: The Tomcat reference documentation distributed with the Java WSDP contains information about the manager application. For further information on the technologies discussed in this tutorial see the reference documentation contained in the Java WSDP (<JWSDP_HOME>/docs/index.html). References to individual technology homes listed in some chapters map as follows:
This command invokes the manager Web application. Before you can use this application you must add your user name and password combination and associate the role name manager with it to <JWSDP_HOME>/conf/tomcat-users.xml, which can be edited with any text editor. This file contains an element <user> for each individual user, which might look something like this:<user name="adeveloper" password="secret" roles="manager" />
The Tomcat reference documentation distributed with the Java WSDP contains information about the manager application.
For further information on the technologies discussed in this tutorial see the reference documentation contained in the Java WSDP (<JWSDP_HOME>/docs/index.html). References to individual technology homes listed in some chapters map as follows: