Before You Begin

This book explains how to build and deploy web services and web service clients using the Fortetrademark for Javatrademark 4 integrated development environment (IDE).

The book is intended primarily for web service developers. A conceptual overview is provided that can benefit anyone seeking a general understanding of web services.

For information about the supported environments, see the release notes on the following web site:

http://forte.sun.com/ffj/documentation/index.html

Screen shots vary slightly from one platform to another. You should have no trouble translating the slight differences to your platform. Although almost all procedures use the Fortetrademark for Javatrademark 4 user interface, occasionally you might be instructed to enter a command at the command line. Here too, there are slight differences from one platform to another. For example, a Microsoft Windows command might look like this:

c:\>cd MyWorkDir\MyPackage

To translate for UNIX® or Linux environments, simply change the prompt and use forward slashes:

% cd MyWorkDir/MyPackage


Before You Read This Book

Before starting, you should be familiar with the following subjects:

  • Javatrademark programming language
  • Enterprise JavaBeanstrademark (EJBtrademark) component model
  • JavaServer Pagestrademark (JSPtrademark) syntax
  • HTML syntax
  • J2EE application assembly and deployment concepts

This book requires a knowledge of J2EE concepts, as described in the following resources:

The following resources provide useful background knowledge of web services standards:



Note - Sun is not responsible for the availability of third-party web sites mentioned in this document and does not endorse and is not responsible or liable for any content, advertising, products, or other materials on or available from such sites or resources. Sun will not be responsible or liable for any damage or loss caused or alleged to be caused by or in connection with use of or reliance on any such content, goods, or services available on or through any such sites or resources.




How This Book Is Organized

Chapter 1 provides an overview of web services standards and the web services features of the Forte for Java 4 IDE.

Chapter 2 outlines the work flow for developing and testing a web service and explains how to use the web service development tools. It also explains how you can use a UDDI registry to make your web service available to others.

Chapter 3 explains how you create clients that can use your web service. It also explains how to search a UDDI registry for web services and create clients that can use those web services.

Chapter 4 explains how you create and edit XML operations, the building blocks of your web service. It also provides a description of the tools you use for this job.

Appendix A describes how to expose native C++ library methods in your web service, using the Forte for Java 4 Native Connector Tool.

Appendix B describes how to manually specify the target of an object reference in a web service.

Appendix C describes how to view and edit a deployment descriptor. It also lists the IDE fields that are propagated to the deployment descriptor of an EJB module or web service module.


Typographic Conventions

Typeface

Meaning

Examples

AaBbCc123

The names of commands, files, and directories; on-screen computer output

Edit your.login file.

Use ls -a to list all files.

% You have mail.

AaBbCc123

What you type, when contrasted with on-screen computer output

% su

Password:

AaBbCc123

Book titles, new words or terms, words to be emphasized

Read Chapter 6 in the User's Guide.

These are called class options.

You must be superuser to do this.

AaBbCc123

Command-line variable; replace with a real name or value

To delete a file, type rm filename.



Related Documentation

Forte for Java 4 documentation includes books delivered in Acrobat Reader (PDF) format, online help, readme files of example applications, and Javadoctrademark documentation.

Documentation Available Online

The documents in this section are available from the Forte for Java 4 portal and the docs.sun.comSM web site.

The documentation link of the Forte for Java Developer Resources portal is at http://forte.sun.com/ffj/documentation/. The docs.sun.com web site is at http://docs.sun.com.

  • Release notes (HTML format)
Available for each Forte for Java 4 edition. Describe last-minute release changes and technical notes.
  • Forte for Java 4 Getting Started Guide (PDF format) - Community Edition part no. 816-4062-10, Enterprise Edition part no. 816-4063-10
Available for each Forte for Java 4 edition. Describes how to install the Forte for Java 4 product on each supported platform and includes other pertinent information, such as system requirements, upgrade instructions, web server and application server installation instructions, command-line switches, installed subdirectories, Javadoc setup, database integration, and information on how to use the Update Center.
  • The Forte for Java 4 Programming series (PDF format)
This series provides in-depth information on how to use various Forte for Java 4 features to develop well-formed J2EE applications.
    • Building Web Components - part no. 816-4337-10
Describes how to build a web application as a J2EE web module using JSP pages, servlets, tag libraries, and supporting classes and files.
    • Building J2EE Applications With Forte for Java - part no. 816-4061-10
Describes how to assemble EJB modules and web modules into a J2EE application, and how to deploy and run a J2EE application.
    • Building Enterprise JavaBeans Components - part no. 816-4060-10
Describes how to build EJB components (session beans, message-driven beans, and entity beans with container-managed or bean-managed persistence) using the Forte for Java 4 EJB Builder wizard and other components of the IDE.
    • Building Web Services - part no. 816-4059-10
Describes how to use the Forte for Java 4 IDE to build web services, to make web services available to others through a UDDI registry, and to generate web service clients from a local web service or a UDDI registry.
    • Using Java DataBase Connectivity - part no. 816-4685-10
Describes how to use the JDBC productivity enhancement tools of the Forte for Java 4 IDE, including how to use them to create a JDBC application.
  • Forte for Java 4 tutorials (PDF format)
You can also find the completed tutorial applications at http://forte.sun.com/ffj/documentation/
tutorialsandexamples.html
    • Forte for Java 4, Community Edition Tutorial - part no. 816-4058-10
Provides step-by-step instructions for building a simple J2EE web application using Forte for Java 4, Community Edition tools.
    • Forte for Java 4, Enterprise Edition Tutorial - part no. 816-4057-10
Provides step-by-step instructions for building an application using EJB components and Web Services technology.

The docs.sun.com web site (http://docs.sun.com) enables you to read, print, and buy Sun Microsystems manuals through the Internet. If you cannot find a manual, see the documentation index installed with the product on your local system or network.

Online Help

Online help is available inside the Forte for Java 4 development environment. You can access help by pressing the help key (Help in a Solaris environment, F1 on Microsoft Windows and Linux), or by choosing Help right arrow Contents. Either action displays a list of help topics and a search facility.

Examples

You can download several examples that illustrate a particular Forte for Java 4 feature, as well as the source files for the tutorial applications from the Developer Resources portal, at:

http://forte.sun.com/ffj/documentation/tutorialsandexamples.html

Javadoc Documentation

Javadoc documentation is available within the IDE for many Forte for Java 4 modules. Refer to the release notes for instructions on installing this documentation. When you start the IDE, you can access this Javadoc documentation within the Javadoc pane of the Explorer.


Sun Welcomes Your Comments

Sun is interested in improving its documentation and welcomes your comments and suggestions. Email your comments to Sun at this address:

docfeedback@sun.com

Please include the part number (816-4059-10) of your document in the subject line of your email.