Solved

deploy web service on server

Posted on 2014-03-01
7
334 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 

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

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

Envision that you are chipping away at another e-business site with a team of pundit developers and designers. Everything seems, by all accounts, to be going easily.
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

803 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