Spring / Web services
Difference between API and Web services.
API acts as an interface between two different applications so that they can communicate with each other. An API is not necessarily web-based. API may use any means of communication to initiate interaction between applications.
Web service facilitates interaction between two machines over a network.Web service also uses SOAP, REST, and XML-RPC as a means of communication.
All Web services are APIs but all APIs are not Web services.
A Web service uses only three styles of use: SOAP, REST and XML-RPC for communication whereas API may use any style for communication.
A Web service always needs a network for its operation whereas an API doesn't need a network for its operation.
More Related questions...