Solved

JAX-WS service

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

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Woocommerce Webservice 2 67
nested interface 5 38
wordsWithout 49 80
Safari, Firefox, IE, Java, Plugin, Java Security error 13 41
Here I am going to explain creating proxies at runtime for WCF Service. So basically we use to generate proxies using Add Service Reference and then giving the Url of the WCF service then generate proxy files at client side. Ok, what if something ge…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
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.

746 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

10 Experts available now in Live!

Get 1:1 Help Now