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
HARDIK KALATHIYAHARDIK KALATHIYA 

I am facing the below issue while trying to login using SOAP tool. Kindly let me know how to solve this error. I have to succesfully login via SOAP tool but I am getting the below error:

User-added image
Trying to solve this badge:
https://trailhead.salesforce.com/en/content/learn/modules/api_basics/api_basics_soap

Resource URL:
https:/https://wise-panda-brtwcw-dev-ed.lightning.force.com/services/Soap/c/48.0/0DF5w0000008ZVP
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
   <soapenv:Header>
   </soapenv:Header>
   <soapenv:Body>
      <urn:login>
         <urn:username>example1</urn:username>
         <urn:password>Example2</urn:password>
            </urn:login>
   </soapenv:Body>
</soapenv:Envelope>Request:
Error:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>sf:LOGIN_MUST_USE_SECURITY_TOKEN</faultcode>
         <faultstring>LOGIN_MUST_USE_SECURITY_TOKEN: Invalid username, password, security token; or user locked out. Are you at a new location? When accessing Salesforce--either via a desktop client or the API--from outside of your company’s trusted networks, you must add a security token to your password to log in. To get your new security token, log in to Salesforce. From your personal settings, enter Reset My Security Token in the Quick Find box, then select Reset My Security Token.</faultstring>
         <detail>
            <sf:LoginFault xsi:type="sf:LoginFault">
               <sf:exceptionCode>LOGIN_MUST_USE_SECURITY_TOKEN</sf:exceptionCode>
               <sf:exceptionMessage>Invalid username, password, security token; or user locked out. Are you at a new location? When accessing Salesforce--either via a desktop client or the API--from outside of your company’s trusted networks, you must add a security token to your password to log in. To get your new security token, log in to Salesforce. From your personal settings, enter Reset My Security Token in the Quick Find box, then select Reset My Security Token.</sf:exceptionMessage>
            </sf:LoginFault>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>
 
Sachin HoodaSachin Hooda
You need to use security token along with the org password.
As mentioned in the error, you need to login to your salesforce org, then click on the profile  icon on the top right corner.
then click Setting> personal setting>security token
Generate a new security token , I'll be mailed to you.
When you try to login in the password section
use<urn:password>yourpasswordhere security code here</urn:password>