Solved

JAX-WS service

Posted on 2014-03-04
4
299 Views
Last Modified: 2014-03-07
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?
0
Comment
Question by:michaelm702
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 20

Expert Comment

by:chaitu chaitu
ID: 39905516
0
 

Author Comment

by:michaelm702
ID: 39909947
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.
0
 
LVL 20

Accepted Solution

by:
chaitu chaitu earned 500 total points
ID: 39911617
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
0
 

Author Closing Comment

by:michaelm702
ID: 39911891
thanks helped me move on right direction.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Free runner service software 2 121
print map entry 34 75
Java string replace 11 63
maven not picking latest jar instead picking old jar from .m2 12 47
While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question