aspose file tools*
The moose likes Web Services and the fly likes How to make an Axis web service start/deploy/work automatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "How to make an Axis web service start/deploy/work automatically" Watch "How to make an Axis web service start/deploy/work automatically" New topic
Author

How to make an Axis web service start/deploy/work automatically

Xolani Nkosi
Ranch Hand

Joined: Apr 29, 2009
Posts: 32
Hi,

All the tutorials I've found on how to create an Axis web service seem to include a step of 'deploying' it, which requires running a java app with a deploy.wsdd file (java org.apache.axis.client.AdminClient deploy.wsdd). This seems to talk to the admin servlet, which then 'enables' the web service. This all seems unnecessarily complicated, not to mention something I don't want to have to do every single time I start the EAR.

So my question is how do I structure and configure my web app so that when it starts, it starts my web service automatically without requiring me manually running the deploy.wsdd stage.

For reference, the current structure of my EAR is:

services.ear
- META-INF/application.xml
- services.war


services.war
- wsdl/MyService.wsdl
- WEB-INF
- - classes (contains MyService.class and beans it uses)
- - lib
- - - axis.jar
- - - commons*.jar
- - - jaxrpc.jar
- - - log4j
- - - saaj.jar
- - - wsdl4.jar
- - MyServiceService
- - - /big/long/package/list/deploy.wsdd
- - - /big/long/package/list/undeploy.wsdd
- - web.xml


Contents of web.xml look pretty standard:

 
Don't get me started about those stupid light bulbs.
 
subject: How to make an Axis web service start/deploy/work automatically