You need to sign in to do that
Don't have an account?
INVALID_LOGIN
New to salesforce, SOAP and web services, so not surprising that I'm stuck @ the gate on login. Created a Developer account, followed instructions for getting WSDL files, and using soapUI (seems to be a great tool BTW!) to generate SOAP messages for login. Using the same username and password that I can successfully use on the salesforce website, cut and paste my organizationId from the site, and appended the security token from the email to my password.
Based on what I read somewhere, I left the tags for client, defaultNamespace and portalId empty.
Here's what I post (edited for the ID, username, etc.) - this is trying to use the Partner wsdl - get same error for Enterprise:
POST https://login.salesforce.com/services/Soap/u/19.0 HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
User-Agent: Jakarta Commons-HttpClient/3.1
Host: login.salesforce.com
Content-Length: 715
<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>
<urn:LoginScopeHeader>
<urn:organizationId>00D50000000xxxx</urn:organizationId>
<!--Optional:-->
<urn:portalId></urn:portalId>
</urn:LoginScopeHeader>
</soapenv:Header>
<soapenv:Body>
<urn:login>
<urn:username>jort@xxxxxxxxxxxxx.com</urn:username>
<urn:password>pppppppppp78l6g7iFac5uaviDnJLFxxxxx</urn:password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>
and the response:
HTTP/1.1 500 Internal Server Error
Server:
Content-Encoding: gzip
Content-Type: text/xml; charset=utf-8
Content-Length: 351
Date: Thu, 01 Jul 2010 14:03:03 GMT
<?xml version="1.0" encoding="UTF-8"?><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 or password, locked out or Self-Service portal is not enabled</faultstring><detail><sf:LoginFault xsi:type="sf:LoginFault"><sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode><sf:exceptionMessage>Invalid username or password, locked out or Self-Service portal is not enabled</sf:exceptionMessage></sf:LoginFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
This newbie thanks you in advance for any and all help you can give!
Take out the LoginScopeHeader, thats for self service & portal logins only.
All Answers
Take out the LoginScopeHeader, thats for self service & portal logins only.
Ah! That did it!! Thank you VERY much!
No luck for me. Same problem here :-(
soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.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>kcoeim@kone.com</urn:username> <urn:password>8xS0*!dFIu4zvS6toJMVkusdom2xKHDy</urn:password> </urn:login> </soapenv:Body></soapenv:Envelope>
Repsonse invariably:
<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>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>
Thank you :). This helped me too
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>bmazumder012@gmail.com</urn:username>
<urn:password>rMQoRm55JqzNe659wD75BIgUr</urn:password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>
Response
-------------------
<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.
Request:
<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>*******@trailhead.com</urn:username>
<urn:password>*******flBOuiaflFepku1Gd1uqXAA6</urn:password>
</urn:login>
</soapenv:Body>
</soapenv:Envelope>
But, unfortunately, I got the following error message. I can't login. Please could you help me?? :(
<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:INVALID_LOGIN</faultcode>
<faultstring>INVALID_LOGIN: ユーザ名、パスワード、セキュリティトークンが無効か、ユーザがロックされています。</faultstring>
<detail>
<sf:LoginFault xsi:type="sf:LoginFault">
<sf:exceptionCode>INVALID_LOGIN</sf:exceptionCode>
<sf:exceptionMessage>ユーザ名、パスワード、セキュリティトークンが無効か、ユーザがロックされています。</sf:exceptionMessage>
</sf:LoginFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
Superfell
Take out the LoginScopeHeader, thats for self service & portal logins only.
------------------------------------------------------------------
This worked for me..Thanks ...
Hello, this post was started a long time ago however I feel like this could help a lot of people.
<urn:username>yourOrgUserMail</urn:username> and
<urn:password>yourPasswordYourSecurityToken</urn:password> , example -> <urn:password>pass123Token123</urn:password> (literally copy and paste your security token right after your password)
After being certain of those 3 "if's" and you are still getting INVALID_LOGIN, the problem is in the order you reset your password and token. In other words, if you've reset the security token and only after you've reset the password, you won't be able to login.
SOLUTION: Reset your password first and only after reset your security token
I'm confident this is the solution for everyone desperate to find it through the web.
Hope I've helped :) you may send a "thank you" by Liking my comment.
Mizalq