Solved

JAX-WS service

Posted on 2014-03-04
4
296 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
  • 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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
countPairs challenge 7 72
Hosting WCF service on IIS6 with SSL enabled 1 62
reading json from C# REST service 1 85
Eclipse with gitlab 1 37
To properly understand GitHub, let’s divide it into two words ‘Git’ and ‘Hub’. Git is basically a ‘Distribution Version Control’ (DVC) and ‘Source Code Management’ (SCM) system widely used by software programmers while Hub means the efficient centre…
In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
The viewer will learn how to implement Singleton Design Pattern in Java.

813 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now