function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
KaityKaity 

REST and SOAP API

Hi Integration Experts,

Can I use both REST and SOAP API while integrating SalesForce with any 3rd Party Legacy system? 
Which approach provides easy authentication as per implementation is concern? Please explain. 

-Kaity
BalajiRanganathanBalajiRanganathan
Yes you can use both Soap and Rest API to integrate.

Both Soap and Rest Api can use one of the following method to authenticate.
1) Using OAuth Token(https://developer.salesforce.com/page/Digging_Deeper_into_OAuth_2.0_at_Salesforce.com)
2) Using session id provided by Enterprise WSDL(SOAP API) login method.

As of now Rest API does not support bulk insert/update/delete where as SOAP API Support batch of 200 records in a single transaction.

Use OAuth for Authentication and Rest API,if you don't need to do buld insert etc. Rest API is light weight and Provides data in both Json and XML.

https://help.salesforce.com/HTViewHelpDoc?id=integrate_what_is_api.htm



 
KaityKaity
Hi Balaji,
Thank you for replying.

I got confused here for the point#2 :

Can REST api use session ID? 
2) Using session id provided by Enterprise WSDL(SOAP API) login method.

-Kaity
 
BalajiRanganathanBalajiRanganathan
Yes Rest API can use Session Id returned by SOAP API Login Method.

Refer Session Id Authorization from the link below
http://www.salesforce.com/us/developer/docs/api_rest/index_Left.htm#CSHID=quickstart_oauth.htm|StartTopic=Content%2Fquickstart_oauth.htm|SkinName=webhelp