calling webservice in java servlet
Posted
by Pravin
on Stack Overflow
See other posts from Stack Overflow
or by Pravin
Published on 2010-03-17T21:05:20Z
Indexed on
2010/03/17
21:11 UTC
Read the original article
Hit count: 324
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.
© Stack Overflow or respective owner