David Not sure if this information is helpful for tasking you've already accomplished . . .
JAB -----Original Message----- From: Peter Mount [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 21, 2004 5:17 AM To: [EMAIL PROTECTED] Subject: Re: Integrating Axis into an existing web application On Tue, 20 Jan 2004, Priyendra Deshwal wrote: > I have an existing Tomcat web application and I wish to add a web > service to that. As a start I am trying to add a web service that will > return the sum of two numbers. I have read the relavant paragraph in the > Axis installation guide. > > I quote: > ---- > 1. Add axis.jar, wsdl.jar, saaj.jar, jaxrpc.jar and the other > dependent libraries to your WAR file. > 2. Copy all the Axis Servlet declarations and mappings from > axis/WEB-INF/web.xml and add them to your own web.xml > 3. Build and deploy your webapp. > 4. Run the Axis AdminClient against your own webapp, instead of > Axis, by changing the URL you invoke it with. > ----- > > I did Steps 1, 2, 3. In step 3 is there something special that needs to > be done? All I did was that I deplopyed the webapp just as I was doing > before and in addition copied the server side class files for the web > service to the webapps/MYWEBAPP/WEB-INF/classes directory. Is that enough? That's all I've had to do in the past, and it works fine. I've done this on two sites so far. > Then in step 4, I invoked the AdminClient as: > java org...AdminClient -l"http://localhost:8080/MYWEBAPP/Calculator" > deploy.wsdd You should be refering to the AxisServlet not your service. What I use is the following (actually I have a bash script which does this for each service): java org.apache.axis.client.AdminClient \ -l http://127.0.0.1:8080/retep/servlet/AxisServlet \ deploy.wsdd Peter -- Peter Mount [EMAIL PROTECTED] http://www.retep.org/ http://retep.net/ Tel: +44 (0) 1622 749439 Fax: +44 (0) 8701 361620 Mobile: +44 (0) 7838 191423 IM-MSN: [EMAIL PROTECTED] IM-AOL/ICQ: retepworld
