Search This Blog

Lets go..




Manage your Inventory | Grow your restaurant business | Manage your Employee | Control your accounts

Thursday

Difference Between Web Service and API

By: Mohammad  Tuaha


A Web service is merely (নিছক) an API wrapped in HTTP. An API doesn’t always need to be web based.
 An API consists of a complete set of rules and specifications for a software program to follow in order to facilitate interaction. A Web service might not contain a complete set of specifications and sometimes might not be able to perform all the tasks that may be possible from a complete API.


API and Web service serve as a means of communication. The only difference is that a Web service facilitates interaction between two machines over a network.
An API acts as an interface between two different applications so that they can communicate with each other.
All Web services are APIs but all APIs are not Web services.

Web service
API
A Web service always needs a network for its operation.

An API doesn't need a network for its operation.

Web services might not perform all the operations.


API would perform all the operations.

A Web service uses only three styles of use: SOAP, REST and XML-RPC for communication.
API may use any style for communication.
A Web service is designed to have an interface that is depicted (ফোটানো) in a machine- process able format usually specified in Web Service Description Language (WSDL). Typically, “HTTP” is the most commonly used protocol for communication.
An API is a method by which the third-party vendors can write programs that interface easily with other programs.
In case of Web applications, the API used is web based. Desktop applications such as spreadsheets and word documents use VBA and COM-based APIs which don’t involve Web service. A server application such as Joomla may use a PHP-based API present within the server which doesn’t require Web service.
A web service typically offers a WSDL from which you can create client stubs automatically.
Web API can also be used to create OData services.
·         Web Services are based on the SOAP Protocol.

  
      Web services are based on standard defined by W3C.
·         Web API can be used to create any type of web service, most commonly RESTful services.
·         Web API can present the data in nearly any format not just JSON, or XML. (Csv, protobuf, streams etc.)
·         Web API is hosted in an OWIN framework.
·         Web API is easy to extend.





Enjoy Free code


No comments:

Post a Comment

Thanks for your opinion