Hi Priyendra,

I advice to start with a small jws application which will give you a clear
idea of how this stuff works. If you are interested, then i can give you an
example.

Cheers
Sai.


----- Original Message -----
From: "Priyendra Deshwal" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, January 20, 2004 11:54 PM
Subject: Integrating Axis into an existing web application


> 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?
>
> Then in step 4, I invoked the AdminClient as:
> java org...AdminClient -l"http://localhost:8080/MYWEBAPP/Calculator";
> deploy.wsdd
>
> However the AdminClient outputs the following:
> "Processing file iw/deploy.wsdd
> Exception:: (404)/MYWEBAPP/Calculator"
>
> Now I guess the 404 part refers to the fact that there is nothing
> present at the URL I sent to the AdminClient .. but then what URL should
>   I be sending?
>
> Kindly note that since I am not using Ant right now, advice regarding
> how to set up Ant tasks for all this will not be helpful to me.
>
> Any help will be greatly appreciated.
>
> Regards,
> -- Priyendra
>
>

Reply via email to