Difference between web services and web application

前端 未结 8 2009
天涯浪人
天涯浪人 2021-01-30 02:16

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 a

相关标签:
8条回答
  • 2021-01-30 02:56

    A person drives a car. That car could be powered by an internal combustion engine, electric motor, or nuclear reactor. The power source doesn't matter to the driver though, as all they need to see are the controls and the road ahead.

    The application is the car. Web services are the nuclear reactor.

    0 讨论(0)
  • 2021-01-30 03:04

    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.

    0 讨论(0)
  • 2021-01-30 03:05

    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.

    0 讨论(0)
  • 2021-01-30 03:08

    There is little difference between web application and web services. Web Application: In web application when user request any data then the server embeds the response into some HTML and forward it to the user and on browser the HTML is rendered. While in web services it's done differently that when some user requests for some data then the server returns it a json or XML array of objects and the data can be displayed by anyway the web designers wants.
    Thanks Hope it resolves the matter.

    0 讨论(0)
  • 2021-01-30 03:12

    Web service is for application consumption , invoked through web application To communicate with webservice data should be sent as SOAP message or as REST i.e XML over HTTP

    Most of the times web service is not part of application because to facilitate the use by other web applications and it is not for direct consumption to end users

    Web application is for human consumption invoked directly by GUI which may or may not use web service for giving response

    0 讨论(0)
  • 2021-01-30 03:13

    A webservice is equivalent to a method in java that has a web wrapper around it. It lives on the server and it can be sent data / queried etc. and may or may not return a result. It does not have any front end it can only be accessed via http get, put, delete etc.

    A web Application is a fully functional piece of software that lives on a sever that is designed to help people achieve a task. This would have a front end that would allow users to interact with it / enter data etc.

    A web application could use multiple webservices to achieve its goal / end result

    0 讨论(0)
提交回复
热议问题