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
markusBvmarkusBv 

SOAP cannot authenticate and doesn't produce login attempt

(I hope this is the right forum, I did not see a SOAP API board)

 

I am using ruby and savon.

I created a developer account and an app (which I should not even need for this, right?)

http://pastebin.com/7HpqZpfH

Login fails. Invalid Credentials.  (and apparently a HTTP500?)

Logging in with the same credentials works. I appended the security token.

 

When I go to Manager Users > Login History there is not even a record of me trying to login? Any idea what I am doing wrong?

 

I am now trying to get this to work for two days, always the same issue. My credentials seem to be wrong - whoever checks them...

Thanks, Markus

 

p.s: rforce says the same. So does using the databasedotcom gem. *sigh

markusBvmarkusBv

This is what rforce produces:

 

require 'rforce'
binding = RForce::Binding.new "https://login.salesforce.com/services/Soap/c/24.0"
binding.login username, password+token


 

<?xml version="1.0" encoding="utf-8" ?>
<soap:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:partner="urn:partner.soap.sforce.com"
    xmlns:spartner="urn:sobject.partner.soap.sforce.com">
  <soap:Header>
    <partner:SessionHeader soap:mustUnderstand='1'>
      <partner:sessionId></partner:sessionId>
    </partner:SessionHeader>
    <partner:QueryOptions soap:mustUnderstand='1'>
      <partner:batchSize>2000</partner:batchSize>
    </partner:QueryOptions>
    
  </soap:Header>
  <soap:Body>
    <login xmlns="urn:partner.soap.sforce.com"><username>USRNAME</username><password>PWANDTOKEN</password></login>
  </soap:Body>
</soap:Envelope>
<?xml version="1.0" encoding="UTF-8"?><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>
/Users/mmlac/.rvm/gems/ruby-1.9.2-head@salesforce/gems/rforce-0.8.1/lib/rforce/binding.rb:116:in `login': Incorrect user name / password [{:faultcode=>"INVALID_LOGIN", :faultstring=>"INVALID_LOGIN: Invalid username, password, security token; or user locked out.", :detail=>{:LoginFault=>{:exceptionCode=>"INVALID_LOGIN", :exceptionMessage=>"Invalid username, password, security token; or user locked out."}}}] (RuntimeError)
	from poc.rb:49:in `<main>'

 

 

edit1:

Using my company login now I get:

 

Incorrect user name / password [{:faultcode=>"soapenv:Client", :faultstring=>"No operation available for request {urn:partner.soap.sforce.com}login"}] (RuntimeError)
	from poc.rb:53:in `<main>'