JAX-WS service

michaelm702
michaelm702 used Ask the Experts™
on
I am learning Jax-ws and have created a sample hello world webservice.
Now I already have a webapplication which is running on a tomcat server and want this webservice to be part of the application. So basically when the application starts the webservice should also be available to users on the same tomcat port. I could not find a way to do it so can someone point out how I could achieve this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Author

Commented:
I already have a Service class and a IMPL class all I want to know is how to deploy those to existing application.  Currently I have a java class from which I call
Endpoint.publish("http://localhost:8088/WS/HelloWorld",new HelloWorldImpl());

and this publishes the webservice but to a different port than tomcats port.
create dynamic web project in eclipse and put your  Service class and a IMPL class there and other utility classses.put neccessary jars and ws related jars in the classpath and then  right click on the project and run as server so that this project will be deployed in the tomcat server.then you can access the service with below url.

http://localhost:8080/WS/HelloWorld

Author

Commented:
thanks helped me move on right direction.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial