Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Xolani Nkosi
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic