Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Web Service vs Web Application

I know this is an old question and must have been answered hundred times already, but I am not able to find a satisfactory response as yet.

I am creating an application which will be used by other applications (mobile/ web) to fetch the data. Now I have 2 options:

  1. Create my application as a simple web application.
  2. Create a web service.

A web service looks more sophisticated where any client will provide the data in a specified format (SOAP/ REST) and my app will parse the request and return the data asked by client. How the data will be used is not my app's problem.

My question is that same can be achieved by a simple web app accepting the request in XML format and responding with an XML response. Gut feeling is that a web service will be a better way to go for this kind of service where we are not sure who all will be using it. But are there any specific advantages of using a web service over a simple web app?

like image 634
Kamal Avatar asked Feb 02 '12 11:02

Kamal


People also ask

What is the difference between web services and Web applications?

A Web Application is meant for humans to read, while a Web Service is meant for computers to read. Web Application is a complete Application with a Graphical User Interface (GUI), however, web services do not necessarily have a user interface since it is used as a component in an application.

Is a web service an application?

Learn about web service applicationsWeb services are self-contained, modular applications that can be described, published, located, and invoked over a network.

Is web API and web service are same?

There you have it: an API is an interface that allows you to build on the data and functionality of another application, while a web service is a network-based resource that fulfills a specific task. Yes, there's overlap between the two: all web services are APIs, but not all APIs are web services.

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.


1 Answers

If we think the terminology, which I think is the main question here.

Web service refers to software, that serves data in any format (XML/JSON etc.) through some kind of web interface. That interface can be called API (Application Programming Interface). REST and SOAP are ways to design the API.

Application is the software that is using this API provided by the web service.

In the other words, web service is "server" and application is "client". Usually server serves machines and clients serve the user.

So in any way you choose to build your system, I would call the part that serves the data as "Web service" and the part that utilizes the data as "application" (or "web application" if such).

Sounds like in your case, you are building a web service that provides XML-formatted data for multiple applications. So my answer is: build the thing you are already building and call it web service.

like image 52
Jeewes Avatar answered Oct 09 '22 23:10

Jeewes