What is a web service?

Can someone please explain to me in a simple way what a web service is?

Please correct me if I am wrong. I have a database hosted somewhere on the Internet and I want to execute database transactions from a desktop application as well as a mobile application. Can this be done through a web service? Someone mentioned this, and I wanted to make sure that this could happen.

+4
source share
2 answers

Here is a good description on Wikipedia .

Application server for mid-level processing and generation-level server, for example Ruby on Rails, Java EE, ASP.NET, PHP, ColdFusion platform.

A mid-tier three-tier application is often a web service.

I want to execute database transactions from a desktop application and a mobile application, can this be done through a web service?

This is exactly what the web service is for.

The web service allows you to create multiple front ends, if necessary, and serve your database data on all of these fronts. You can also open the API and allow third-party developers to access the web service and thereby access the data of your application in a controlled environment.

He looked at better practices for larger applications to access a web service or middle tier, rather than directly accessing a database.

+6
source

In your case, the web service will include setting up your database behind a web server that listens for incoming requests, performs the corresponding operations with the database, and returns any data. Then your desktop and mobile applications could send an HTTP request, and the database will respond accordingly. This will allow all your applications to access the same database.

+4
source

Source: https://habr.com/ru/post/1394440/


All Articles