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
Ravindra reddy MRavindra reddy M 

Invalid login

Hi All,

I am trying to loginSFDC wsdl from soupUI but getting below error.Can someone please help on this.

Request XML
-----------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:partner.soap.sforce.com">
   <soapenv:Header>
      <urn:CallOptions>
         <urn:client></urn:client>
         <urn:defaultNamespace></urn:defaultNamespace>
      </urn:CallOptions>     
   </soapenv:Header>
   <soapenv:Body>
      <urn:login>
         <urn:username>ravindra@ravi.com</urn:username>
         <urn:password>sfdc@1234</urn:password>
      </urn:login>
   </soapenv:Body>
</soapenv:Envelope>

-------------------
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.partner.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>sf:INVALID_LOGIN</faultcode>
         <faultstring>INVALID_LOGIN: Invalid username, password, security token; or user locked out.</faultstring>
         <detail>
            <sf:LoginFault xsi:type="sf:LoginFault">
               <sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode>
               <sf:exceptionMessage>Invalid username, password, security token; or user locked out.</sf:exceptionMessage>
            </sf:LoginFault>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>


I am able to login from browser.
NagendraNagendra (Salesforce Developers) 
Hi Ravindra,

May I request you to please confirm that were you able to login to data loader with same credentials?If you were able to log in successfully may I suggest you check your login history to see if a login attempt from your API is in there (Manage Users > Login History)? If it's not there, it's not hitting your instance.

I hope that you are using partner WSDL may I suggest you please try with enterprise WSDL and confirm whether you are facing the same issue.

Please check with below blog on Using soapUI with Salesforce to test standard and custom web services response which has a step by step process. Please mark this as solved if it's resolved.

Regards,
Nagendra.
 
Ravindra reddy MRavindra reddy M
Hi Nagendra,

Thank you so much Nagendra I find the solution.The main thing has I missed TLS 1.2 protocols in my system and one more thing I removed header part in XML. Here I am confirming what you asked. 
I am using same credentials in data loader, it will successfully login and one more thIng I will confirming you I am using enterprise WSDL only.

Thanks & regards
Ravindra