Hi!
In order to be able to run a web service inside Tomcat, you must have a web service stack.
There are many to choose from, such as Metro, Apache CXF, Axis etc.
I would personally recommend Metro, due to it being very easy to work with - install it and, more or less, forget it.
The steps would be:
- Install Tomcat.
- Install Metro.
- Create a Dynamic Web Project in Eclipse.
- Develop a web service endpoint implementation class in the Eclipse project.
Use JAX-WS annotations to annotate the class, a minimum would be to annotate the class with @WebService.
- Deploy the project to Tomcat.
-
Test the web service using soapUI or similar tool.
Best wishes!