apache > ws.apache
WSRF
 

Compile and Deploy the Service

Introduction

In this step of the tutorial, the filesystem example code and the generated classes are compiled and deployed to the WSRF Web application. An Ant script is provided for compiling and deploying. Detailed instructions for using the Ant script are provided in the Developer Guide.

Run the Compile/Deploy Ant Script

To compile and deploy the service:

  1. Copy INSTALL_DIR/examples/filesystem/src/java/example to WORK_DIR/generated/filesystem/src/java.
  2. From a command prompt, change directories to WORK_DIR/generated/filesystem.
  3. Using a text editor, open build.properties.
  4. Uncomment the wsrf.webapp.dir property and set it to the location where the WSRF Web application is installed. If you are using Tomcat and have CATALINA_HOME set, you do not need to modify this property.
  5. Uncomment and modify the proxy settings if you require a proxy to connect to external Web sites.
  6. Save and close build.properties.
  7. Run ant compile deploy. The service is compiled and deployed to the WSRF Web application.
  8. Start Tomcat if it is not already started.
  9. Using a browser, go to http://localhost:8080/wsrf/services and verify that the filesystem service is deployed.

go to the previous step Back go to the next step Next