WSM Annotation Samples
Introduction
This sample demonstrates the different metadata annotations available to a Beehive web service. The sample takes the form of a web site (with web service backends) with links to SOAP resonses for different requests of the web services.
Running the Sample
Requirements for Running the Samples
To run the Samples, you need:
- Beehive
- Tomcat 5
- J2SE 5
- Ant 1.6.2
To Set up the Environment
Before proceeding, complete all of the necessary and optional steps in the following topic: Beehive Installation and Setup
Open a command shell and confirm that the following variables have been set:
- ANT_HOME
- BEEHIVE_HOME
- CATALINA_HOME
- JAVA_HOME
Also ensure that the following elements are on your PATH:
- ANT_HOME/bin
- JAVA_HOME/bin
To Set up the Server
To Start Tomcat
To start Tomcat, run the following command:
%CATALINA_HOME%\bin\startup.bat
Edit the build.properties Files
In this section you will edit the build.properties files--the files that set the build-related properties for the web services.
Open the file BEEHIVE_HOME/samples/wsm-sample/WEB-INF/src/build.properties in a text editor.
Edit the file so that the beehive.home property points to the top-level folder of your beehive installation. For example, if you beehive installation resides at C:/apache/apache-beehive-1.0, then your build.properties file would appear as follows.
beehive.home=C:/apache/apache-beehive-1.0
To Compile the App
To compile the app, enter the following Ant command.
ant -f %BEEHIVE_HOME%\samples\wsm-sample\WEB-INF\build.xml -Dto.dir=%CATALINA_HOME%\webapps clean build deploy Copy and paste version: ant -f %BEEHIVE_HOME%\samples\wsm-samples\WEB-INF\build.xml -Dto.dir=%CATALINA_HOME%\webapps clean build deploy
To Test the Samples
Verify that the web services is running by pointing your browser to:
http://localhost:8080/wsm-samplesWS/
Follow the links for demonstrations of different metadata annotations.