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
Meenakshi sinhaMeenakshi sinha 

webservice in salesforce

Hi
Can anyone let me know how we connect salesforce to a webservice to export data / import data?
a) what type of api used?
b) what are the important considerations?

Good example will be helpful in understandng​
Thanks
meenakshi​
NagaNaga (Salesforce Developers) 
Hi Meenakshi,

When to Use REST API

REST API provides a powerful, convenient, and simple REST-based Web services interface for interacting with Salesforce. Its advantages include ease of integration and development, and it’s an excellent choice of technology for use with mobile applications and Web projects. However, if you have a large number of records to process, you may wish to useBulk API.

When to Use SOAP API

SOAP API provides a powerful, convenient, and simple SOAP-based Web services interface for interacting with Salesforce.You can use SOAP API to create, retrieve, update, or delete records. You can also use SOAP API to perform searches and much more. Use SOAP API in any language that supports Web services. For example, you can use SOAP API to integrate Salesforce with your organization’s ERP and finance systems, deliver real-time sales and support information to company portals, and populate critical business systems with customer information.

When to Use Bulk API

Bulk API is based on REST principles and is optimized for loading or deleting large sets of data. You can use it to query, insert, update, upsert, or delete a large number of records asynchronously by submitting batches which are processed in the background by Salesforce. SOAP API, in contrast, is optimized for real-time client applications that update small numbers of records at a time. Although SOAP API can also be used for processing large numbers of records, when the data sets contain hundreds of thousands of records, it becomes less practical. Bulk API is designed to make it simple to process data from a few thousand to millions of records.

Please see the link below

http://salesforce.stackexchange.com/questions/10231/exporting-data-from-salesforce-rest-or-soap

Best Regards
Naga Kiran
Meenakshi sinhaMeenakshi sinha

Hi
can u pls clarify
a) any real time example on how to perform dml operation using soap api
b) any real time example on how to perform dml operation using Bulk api?
thanks
meenakshi