Salesforce SOAP vs REST

SOAP vs REST

SOAP API
  • Relies on SOAP protocol
  • Transport data in XML
  • Highly structured
  • Design with large enterprise applications in mind.
REST API
  • Relies on REST architecture using HTTP
  • Transports data in JSON
  • Less structured
  • Design with mobile devices in mind
Capabilities of REST API
  • Perform CRUD operations on your salesforce data
  • Perform SOSL and SOQL queries
  • Request a description of the metadata of any salesforce objects

Using REST

Ways to connect to your Orgnization:
  • The OAuth2 authentication method (user password flow).
  • The same session ID method as the SOAP API
Access resource via:
  • An HTTP method (HEAD, GET, POST, PATCH or DELETE)
Provide data in JSON format in the body of the HTTP object
HTTPPOST + https://na#.salesforce.com/services/data/v20.0/sobjects/Contact/

If anyone need more information/help on Salesforce integration please let me know. I'll be glad to help.

Comments