views:

268

answers:

0

I have created a servlet which displays a form having some fields and a submit button and also created a web service having methods which are needed in my servlet.

I have deployed the web service on Tomcat 5.5.9/Axis and servlet web application on Tomcat ( same instance of Tomcat) using eclipse. Since one is web service and other is web application both are running on separate instances of tomcat, so when i run them separately i.e servlet without the call to web service and a client that access that webservice it works fine but when i integrate them both i get a error like

exception: javax.servlet.ServletException

I would like to call the web service and return the result when i press the button

Please advice me on how to implement that.