Solved

JAX-WS service

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

Enroll in June's Course of the Month

June's Course of the Month is now available! Every 10 seconds, a consumer gets hit with ransomware. Refresh your knowledge of ransomware best practices by enrolling in this month's complimentary course for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

This tutorial will show you how to add an attribute to an XML (http://en.wikipedia.org/wiki/XML) stream returned from a Windows Communication Foundation (http://en.wikipedia.org/wiki/Windows_Communication_Foundation) (WCF) Web Service.  Some knowled…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
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…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

688 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