How to deploy a web service on two different systems on a local network?

I created a web service using Netbeans in Fedora, which works fine on the local host. But I want to deploy the client on another computer and the server on another computer.

I could also connect two Fedora systems using a network cable (SSH), but could not access the web service.

What is the deployment process? Is a webDav-http service connection established? If so, how to do it?

+4
source share
1 answer

To deploy your project on another computer, compile it and copy the war file to the desired application server. I use Tomcat, you just need to copy the war to the webapp folder, you should have something like a glass fish.

About clients: What do you use to create a client? I assume the metro, since this is the default value in netbeans. Create a new java project; Add a new Web service client; Create it from the url: something like http: //example.com.someService? Wsdl . When changing ip, you change the machine this client will interact with.

+3
source

All Articles