2

Can anyone help me in giving the difference between API and Web service in Salesforce ?

3

A webservice is a service that is accessed over the web.

An API is a collection of ways of interacting with software components.

As examples in Salesforce specifically:

  • The SOAP API and REST API are considered both webservices and APIs since they define a set of features and those features are accessible over the web.

  • The built-in classes and interfaces that make up Apex are a collection of features that can be considered an API, but are not considered webservices since they are not accessed directly through the web. That being said, the Salesforce documentation typically does not use the term API when referring to Apex features, except when referring to code api versions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.