Pages

Friday, March 1, 2013

Difference between API Vs. Web Services.




API (Application Programming Interface) is nothing but the protocol intended to be used as an interface by software components to communicate with each other. An API acts as an interface between two different applications so that they can communicate with each other.

Web Service is an API used in the context of
 web development. A Web service is a method of communication between two electronic devices over the World Wide Web.

API use any means of communication to initiate interaction between applications. API has a complete set of rules and specifications for a software program to interaction with each other.

A Web service may not have a complete set of specifications and sometimes might not be able to perform all the tasks.

API can be stripped in a various ways: COM Object, DLL files, Header files with .h extension, RMI in java etc, linux kernel API.

Web Services must be exposed the API is strictly through a network. Web Service API almost always uses HTTP or SMTP. Web Services can be SOAP, XML-RPC, REST, etc. 

Web API i.e. Web Service is typically defined as a set of Hypertext Transfer Protocol (HTTP) request messages, along with a definition of the structure of response messages, which is usually in an Extensible Markup Language (XML) or JavaScript Object Notation (JSON) format.

All Web services are APIs but all APIs are not Web services.



17 comments:

  1. Nice article. Give lot of knowledge.

    ReplyDelete
  2. Great Article. Kindly share more article.

    Web Development Service

    ReplyDelete
  3. I love his song very much. She is my another favorite singer. thanks for sharing this putlocker post...

    ReplyDelete
  4. Fabulous post admin, it was too good and helpful. Waiting for more updates.
    Website Designing company in Delhi

    ReplyDelete