You need to sign in to do that
Don't have an account?
Ravindra 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.
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.
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.
- http://www.jitendrazaa.com/blog/salesforce/using-soapui-with-salesforce-to-test-standard-and-custom-web-services-response/
- https://help.formassembly.com/help/467668-salesforce-error-invalid-login#resolution
Please mark this as solved if it's resolved.Regards,
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