Introduction
Integration is the constraining need of today’s IT landscape. More and more systems, platforms, and technologies are coming closer through different integration techniques. Integration is where Source System may expose their data employing a data layer and the target system access that data layer to request data.
Technological progressions testified many amazing tools & technologies to ease the integration process. Web Service End Points are the most popular amongst them. Like most popular software platforms, Salesforce also offers data access via Web Service Endpoints (APIs in common).
Salesforce offers both SOAP and REST-based service endpoints to enable data access by a large variety of thin clients (Windows Applications, Sync Jobs, Web Applications, Mobile Applications, and much more).
Prerequisites
This article is more focused on the Authentication mechanism for Salesforce SOAP-based services. If you have not already gone through my earlier articles on this, I would strongly recommend referring to the article 'How to Prepare Environment for Salesforce SOAP API Development', as this article is acting as a prerequisite for API Development scenarios. If you feel disengaged from any piece of content in this article, that means you need to refer to the earlier article first.
In this article, we will discuss the detailed steps on how to authenticate SOAP-based requests against Salesforce Org. We will explore the SOAP payloads for the request & response cycle for the request.
Launch the Postman and run through the following steps:
Preparing a Request Object
Step 1
Select the request type as “POST”, since this going to be a request with user credentials submitted to the Salesforce Org
Step 2
Specify the Login Url as https://login.salesforce.com/services/Soap/c/<API Version>, in this case, I have the API Version as “47.0”
Step 3
Select the Request “Body” section
Step 4
Select “raw” as the data input mean for the request data payloads
Step 5
Select “XML” as the content type for the data payloads
Step 6
Include the “SOAP envelope” as the request body. You can copy the XML Envelope from Salesforce documentation reference SOAP Envelope: Login Request and all you need is to change values for UserName & Password.
- Username: It is the user name for the Salesforce Org
- Password: It is the combination of a password for the Salesforce Org and User Security Token. (Refer to the Prerequisites section)

Step 7
Click on Request “Header” section
Step 8
Add the following headers,
- “Content-Type” as “text/xml”
- “SOAPAction” as ‘ ’ (blank quotes). This is a mandatory header that detects the intents of the SOAP Request. So it is important to include this Header with blank quotes in the SOAP Request
Step 9
Once all information is in place as required, click “Send” to the submit SOAP Request to Salesforce Org







Join the conversation! Your thoughts help the community grow.