Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress User Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

1.5 Shipped Examples

HydraExpress ships with Web service, XML binding, and servlet examples located in the <installdir>\examples directory. These examples are used for illustration in various chapters throughout the documentation. Most examples include already-implemented applications that you can use immediately to see how HydraExpress works.

Each Web service or XML binding example directory contains

The next section describes the use of the project file in Web service and XML binding examples. Section 1.5.2 discusses the servlet examples.

1.5.1 The Use of the HydraExpress Project File in Shipped Examples

A HydraExpress project file is provided with each shipped Web service and XML binding example to ensure that the example runs correctly.

Each example includes the XML Schema file(s) or WSDL file(s) to be provided to the code generator, in addition to any options recommended or required by the particular example. For instance, most example-project.xml files set whitespace=true, which results in more easily-read output.

Using the example-project.xml file as an argument to the code generator invokes the generator in exactly the same way as including each option separately on the command line.

For example, invoking the code generator with:

where the example-project.xml file is this:

is exactly the same as invoking the following:

For the shipped examples, we recommend the use of the provided project files. For your own projects, you have the choice to create customized project files to include various options or to manually enter files and options at the command prompt.

For more information on the HydraExpress project file, see Section 21.2, "The Project File," in the HydraExpress Web Service Development Guide.

1.5.2 Servlet Examples

The servlet examples are located in <installdir>\examples\servlet, but it is unnecessary to go to this location to examine them. If you start the Agent (as explained in the next chapter) and enter http://localhost:8090 into a browser, a page displays confirming that the Agent is running, and giving access to all of the servlet examples. For each example there is a description, a link to execute the servlet, and links to the header and source files.



Previous fileTop of DocumentContentsIndex pageNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.