---
title: "Difference between SOAP and REST Web Service in Salesforce."  
description: "Difference between SOAP and REST Web Service in Salesforce."  
author: "mickey Davis"  
published: 2018-02-07  
updated: 2018-02-07  
canonical: https://answers.mindstick.com/qa/34164/difference-between-soap-and-rest-web-service-in-salesforce  
category: "salesforce"  
reading_time: 2 minutes  

---

# Difference between SOAP and REST Web Service in Salesforce.

[Difference](https://yourviews.mindstick.com/view/84555/google-analytics-4-ga4-vs-universal-analytics-actual-difference) between [SOAP](https://www.mindstick.com/articles/1760/soap-example-in-android) and [REST](https://www.mindstick.com/forum/23169/system-servicemodel-communicationexception-to-consume-wcf-rest-service-from-windows-phone-8) [Web Service](https://www.mindstick.com/articles/1788/introduction-to-web-service-in-asp-dot-net) in Salesforce.

## Answers

### Answer by Tarun Gautam

## Salesforce provides two types of web services. Below we are showing the difference between SOAP and REST Web Services which are as follows:

- **SOAP** [web](https://www.mindstick.com/articles/12783/the-ultimate-bunch-of-free-web-design-resources) [service](https://www.mindstick.com/articles/85570/affordable-and-reliable-limo-service-in-ny) is a **protocol**, whereas **REST** web service is an **architectural style** in Salesforce.
- **SOAP** web service stands for **Simple Object Access Protocol** and **REST** web service stands for **Representational State Transfer**.
- **SOAP** web service is not able to use REST because SOAP is a protocol, whereas **REST** web service can use SOAP web services because it is a concept and can use any protocol like HTTP, SOAP.
- **SOAP** web service uses services interfaces to **expose the business logic** and **REST** web service uses **URI to expose business logic**.
- **SOAP** web service defines **standards** to be **strictly followed**, whereas **REST** web service does not define too many **standards** like SOAP.
- **SOAP** web service defines standards to be strictly followed, whereas **REST** web service **does not define too many standards** like SOAP.
- **SOAP** web service requires more bandwidth and resource than REST and REST web service requires less bandwidth and resource than SOAP.
- **SOAP** web service defines its **own security**, whereas **RESTful** web service inherits **security measures** from the **underlying transport**.
- **SOAP** web service permits **XML data format** only, whereas **REST** web service permits different **data format** such as **Plain text**, **HTML**, **XML**, **JSON** etc.
- **SOAP** web service is less preferred than REST, whereas REST web service more preferred than SOAP.
- **SOAP** web service supports several **protocols** and **technologies**, **including WSDL**, **WS-Addressing**, and **XSDs**, but **REST** web service **based implementation** is **simple compared** to **SOAP**.


---

Original Source: https://answers.mindstick.com/qa/34164/difference-between-soap-and-rest-web-service-in-salesforce

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
