Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between web services and web application

Lets have an example scenario:

Client opens a web site and finds the sum of two numbers which he enters from the textboxes.Then clicks on the ADD button.Two parameters are HTTP GET'ed to server where PHP code is written to add the numbers and result is echo'ed.

Based on this scenario could anybody explain the difference between Web services and application?

like image 590
day_dreamer Avatar asked May 16 '12 08:05

day_dreamer


People also ask

Is a web service an application?

Web services are self-contained, modular applications that can be described, published, located, and invoked over a network. They implement a services oriented architecture (SOA), which supports the connecting or sharing of resources and data in a very flexible and standardized manner.

What is the difference between Web API and web service?

Difference Between Web Service vs Web API:Web service is used to communicate between two machines on a network. Web API is used as an interface between two different applications for communicating with each other. It uses HTML requests that can be compressed, but XML data cannot be compressed. Data can be compressed.

Is Facebook a web service?

Web applications, or web apps, are a huge part of the way the internet works! Facebook, Gmail (or any popular email website), and even Udacity's classroom are examples of popular web apps.


2 Answers

In your case if you have User Interface for providing two numbers and then getting the result, it should be called a web application. But if you have an API exposed to receive two numbers and return result over http , then it should be called a web service.
At low level, both Web application and web service are kind of same thing. But the main point is that web services are for machine/program to machine/program communication whereas Web application is for Users.

like image 142
Habib Avatar answered Sep 18 '22 17:09

Habib


I'd say that web applications are intended for users and web services are intended for other applications. That's the most important difference. Web applications usually present data in HTML which looks nice to the user and web services usually present data in XML which easy to parse by other applications.

like image 26
Marek Dzikiewicz Avatar answered Sep 19 '22 17:09

Marek Dzikiewicz