how to call web service deployed in a VPS - web-services

I have deployed a restful web service in a godaddy vps.
this VPS can be connected via ipaddress:port(port provided to me).
i.e. 108.XX.XX.XX:43XX
Now, i have installed tomcat 7 in VPS, and i have deployed a RESTful web service in tomcat on port 8080.
i can call the web service from inside the VPS as ipaddress:8080/webServiceName but not able to call it from any other system(other than my VPS).
How can i fix this issue ??
I have checked many places for fixing this issue, but the only thing i find is how to deploy web service in tomcat.
Please Help..!!

This might be an issue with Firewall on your server. Try allowing the required port and it should be able to connect.

Related

IIS 10 server hosted on AWS will not serve aspx

Have an app that has been running for years using on-premise and virtual systems. It's an ASP.NET application. Stood up a VM on AWS running server 2019 configured identical to another VM running on different provider. The instance of IIS running on AWS VM will not serve up the site. The non AWS server was running server 2016 so i created a new VM on AWS using server 2016. Get the same identical problem.
If i load a dummy html page (typical hello world) the page comes up fine, so i know it's not a DNS issue or anything like that.
when I looked at the logs in IIS i see a 302 status code. for the life of me I can't figure out why this thing won't serve up the site. I check all the extensibility, etc. I have configured the IIS on both systems identically. AWS says it's an IIS issue. How is that possible if it is configured exactly the same?
If it was an application issue wouldn't we see a 500 error?
Looking for any ideas.
thanks.. FYI this is critical at this point. Trying to migrate a customer on AWS.
Turns out that AWS has https turned off by default, so you have to add a rule to the lightsail firewall to allow https traffic to get through. who would have thunk it?

Do i need a localhost server to invoke a web service

I'm very fresh and beginner in the web services world, I'm trying to learn how to deploy and consume services.
My question: Using any technology (such as Java), when I want to invoke some web service that is deployed in a remote server, do i need to install and configure a localhost server in order to access the web service? or I can access it without install server
Note: I'm asking about consuming a web service not developing a one
Thanks in advance
No. Just as your web browser doesn't require a web server to access other web servers, your code doesn't require a web server to access other web servers.

Call a web service outside firewall from EAR installed on websphere via Interface Perimeter

We have WebSphere 7 installed on server abc which is within my organization's firewall. We are deploying a new WAR file on this WebSphere which will call a web service (let's call it xyz) that's outside firewall and the solution offered is proxy server which forwards any requests sent to it to the Internet using perimeter interface.
How do I configure this in Websphere 7?
So far, I tried adding Generic JVM arguments using -Dhttp.proxy.host and port but the WAR file still calls xyz webservice directly without hopping on the proxy server.
I also tried using apache http server by calling the http server from WAR file and the HTTP server was forwarding the request to Proxy server but it dint work as expected.
PS: We can't open firewall for xyz as xyz is on cloud and has dynamic IPs and transaction end points. While my organization whitelists Web service only on the basis of IP.
Appreciate any of suggestions/ideas you can think of. Thanks.

How to publish web service on internet

I have written a web service and deployed in Apache Tomcat in localhost:8080.
It works perfectly on localhost:8080.
I just need to know how to make it available to others over internet (not only localhost) just like the webservice written for temperature convert in w3schools website. I can access that anywhere if I am connected to internet.
You can use Amazon's EC2 Service for hosting a webservice..

Develop and deploy RESTful web service

I followed Creating a RESTful Web Service Using NetBeans IDE. I implemented all the steps from step no 1 to 6 successfully and able to test my REST web service on my machine.
But now I want to deploy my web service for stand alone Glassfish v4 server and want to access from another machine or node from the local network.
I deployed the .War file on stand alone Glassfish v4 from the front-end of Glassfish but it is not accessible from other node of the network. The View Endpoint option is not coming after deployment.
Please guide me what steps should i follow, what is missing or suggest me how to deploy .war on glassfish v4.
Look into the log messages of the stand alone GF.
Check proxy settings and other connection settings