Solved

deploy web service on server

Posted on 2014-03-01
7
336 Views
Last Modified: 2014-03-12
Hi,

I have created a web service on my local machine through apache axis2.
The url is of localhost since server is on local machine itself.

Now i need to deploy this service in the server so that other users can access this service remotely.the server is on open ip.

How can i modify the web service created so that it can have a valid remote server url on which it is deployed instead of local host so that other users can access it.
0
Comment
Question by:Rocking
  • 4
  • 3
7 Comments
 
LVL 21

Expert Comment

by:Amitkumar Panchal
ID: 39899761
which web server are you using ? tomcat ?
0
 

Author Comment

by:Rocking
ID: 39902096
tomcat 5
0
 
LVL 21

Expert Comment

by:Amitkumar Panchal
ID: 39902419
It's straight forward. Make a war file of your web service project and deploy it on remote server (similar to deploying a web application).

What's an issure  are you facing while doing so ?
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 

Author Comment

by:Rocking
ID: 39903700
if i deploy the war file on my tomcat server which has the ip xxx.xx.xx.xx then the url of the webservice would be http://xxxx.xx.xx.xx/webservcie


if i deploy it on a different server which has the ip yyy.yy.yy.yy then the url of teh web servcie would be http://yyy.yy.yy.yy/webservice


this is the issue i think will face if i deploy the webservice on another environment?
0
 
LVL 21

Expert Comment

by:Amitkumar Panchal
ID: 39903793
That is obvious and applicable to web applications also.

I think i misunderstood your question. Now i want to understand the exact requirement (with an example).

example like... what will be the hosts ? how do you want client to call web service (ie. which url) ? and so on.
0
 

Accepted Solution

by:
Rocking earned 0 total points
ID: 39908023
hi,

Never mind i came across the below site and found the answer for my question.

http://www.theserverside.com/discussions/thread.tss?thread_id=37650
0
 

Author Closing Comment

by:Rocking
ID: 39922901
i found the answer doing googling
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying 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

Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

829 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