Installing, Configuring, and Deploying

(This page is going to need some work -- especially links to other wiki pages.)

You may install Tomcat and Axis according to the instructions that come with them. That's the way I'm doing it right now on my Mac OS X system. For Fedora GNU/Linux, you usually install everything using yum. (XXX check if Axis comes with JPP or FC4)

The easy way (using a .jws file)

To install web service the simplest way possible, just rename the .java file to a .jws file and drop it in your webapps/axis directory, as described in the Axis docs.

The standard way (using a .wsdd file)

You can compile your .java file to a .class file, then put it into the webapps/axis/WEB-INF/classes directory on your server.

Remember this is a Fully Qualified Name - org.something.other becomes org/somthing/other.class.

Then use a .wsdd file (I used the one from samples/userguide/example3 as a starting point and modified it slightly) and deploy the web service using the AdminClient as described in the User's Guide.

Verify that it's working

You can verify that your web service is installed by pointing your web browser to:

http://localhost:8080/axis/MyWebService.jws

To have Axis generate the WSDL for your service, you can click the link provided, which points to:

http://localhost:8080/axis/MyWebService.jws?wsdl

To actually use the web service, you'll need to run a web service client. If the one you wrote is called MyService, you might go to a terminal window and run:

java my.pkg.MyService foo

OR

Use any IDE which understands WSDL. For egs this is how you test using Eclipse IDE.

In eclipse, Click RUN and Click 'Launch the Webservices Explorer'. Then Click on the top Right icon for WSDL. Click on WSDL Main on left pane. Enter the URL on the WSDL Url or Browse. Click Go Button. See your services, click on them to execute and see the results in the window below.

FrontPage/Axis/InstallWebServices (last edited 2009-09-20 22:49:02 by localhost)