2020ok  Directory of FREE Online Books and FREE eBooks

Free eBooks > Computers & Internet > Web Development > Internet Commerce > Web Site Design > The Java Web Services Tutorial

The Java Web Services Tutorial

by Eric Armstrong

Download Book
(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.)

link 1
link 2
link 3
link 4
link 5

About Book

Book Description

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.

Book Info
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:

  • Java API for XML Messaging (JAXM) 1.0 EA 1
  • Java API for XML Processing (JAXP) 1.2 EA 1 (with XML Schema support)
  • Java API for XML Registries (JAXR) 1.0 EA 1
  • Java API for XML-based RPC (JAX-RPC) 1.0 EA 1
  • JavaServer Pagesâ„¢ Standard Tag Library (JSTL) 1.0 EA 3
  • Ant Build Tool 1.4.1
  • Java WSDP Registry Server 1.0 EA 1
  • Tomcat Java Servlet and JavaServer Pages container 4.1-dev

    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:

    • Java Servlets
    • JavaServer Pages (JSP)
    • JSP Standard Tag Library (JSTL)
    • Java XML Pack, which includes:
      • Java API for XML Messaging (JAXM)
      • Java API for XML Processing (JAXP)
      • Java API for XML Registries (JAXR)
      • Java API for XML-based RPC (JAX-RPC)

    To provide a development and deployment environment, the Java WSDP includes the:

    • Tomcat servlet and JSP container
    • Ant build tool
    • Java WSDP Registry Server

    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

    To understand the examples you will need a good knowledge of the Java programming language, SQL, and relational database concepts. The following topics in the Java Tutorial are particularly relevant:

    Running the Examples

    This section tells you everything you need to know to obtain, build, deploy, and run the examples.

    Required Software

    If you are viewing this online, you need to download The Java Web™ Services Tutorial from:


    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:


    the J2SE 1.3.1 SDK from:


    or the J2SE 1.4 SDK from:

    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:

    • For this release of the Java WSDP you must be running Tomcat on the same machine that you are developing on.
    • The first time an application is deployed you must start or restart Tomcat (see next section). Thereafter, when you modify an application, you can build, deploy, and then reload the example, as described in the next section.
    Running Tomcat

    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:

    <user name="adeveloper" password="secret" roles="manager" />

    The Tomcat reference documentation distributed with the Java WSDP contains information about the manager application.

    Related Information

    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:

    • JAXM-HOME to JWSDP_HOME/docs/jaxm/index.html
    • JAXP-HOME to JWSDP_HOME/docs/jaxp/index.html
    • JAXR-HOME to JWSDP_HOME/docs/jaxr/index.html
    • JAXRPC-HOME to JWSDP_HOME/docs/jaxrpc/index.html

    • 0201768119P03262002



    PLEASE READ: All comments must be approved before appearing in the thread; time and space constraints prevent all comments from appearing. We will only approve comments that are directly related to the article, use appropriate language and are not attacking the comments of others.

    Message (please, no HTML tags. Web addresses will be hyperlinked):

    Related Free eBooks

    Related Tags

    DIGG This story   Save To Google   Save To Windows Live   Save To Del.icio.us   diigo it   Save To blinklist
    Save To Furl   Save To Yahoo! My Web 2.0   Save To Blogmarks   Save To Shadows   Save To stumbleupon   Save To Reddit