• Krosk
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

Hi everybody,

 

I have a problem while trying to login Salesforce, using the PHP API.

Here is the code i'm using :

 

 

define('SALESFORCE_USER', 'XXX');
define('SALESFORCE_PASS', 'XXX');
define('SALESFORCE_TOKEN', 'XXX');
define('SALESFORCE_WSDL', "XXX.wsdl");

require_once ('soapclient/SforceEnterpriseClient.php');
ini_set('soap.wsdl_cache_enabled', 0);
$crmHandle = new SforceEnterpriseClient();
try {
  $crmHandle->createConnection(SALESFORCE_WSDL);
} catch (Exception $e) {}

try {
  $crmHandle->login(SALESFORCE_USER, SALESFORCE_PASS . SALESFORCE_TOKEN);
} catch (Exception $e) {
  echo $e;
}

 

 

 

And i get the following error message :

 

SoapFault exception: [INVALID_LOGIN] INVALID_LOGIN: Invalid username, password, security token; or user locked out. in soapclient\SforceBaseClient.php:155 Stack trace: #0 [internal function]: SoapClient->__call('login', Array) #1 soapclient\SforceBaseClient.php(155): SoapClient->login(Array) #2 connect.php(33): SforceBaseClient->login('XXX', 'XXX') #3 {main}

 

Just one more information, i'm working on a sandbox,

maybe is it a reason to my problem ?

 

Any ideas about it ?

I'm a beginner with that and I need your help...

Thanks in advance

  • July 19, 2010
  • Like
  • 0

Hi everybody,

 

I have a problem while trying to login Salesforce, using the PHP API.

Here is the code i'm using :

 

 

define('SALESFORCE_USER', 'XXX');
define('SALESFORCE_PASS', 'XXX');
define('SALESFORCE_TOKEN', 'XXX');
define('SALESFORCE_WSDL', "XXX.wsdl");

require_once ('soapclient/SforceEnterpriseClient.php');
ini_set('soap.wsdl_cache_enabled', 0);
$crmHandle = new SforceEnterpriseClient();
try {
  $crmHandle->createConnection(SALESFORCE_WSDL);
} catch (Exception $e) {}

try {
  $crmHandle->login(SALESFORCE_USER, SALESFORCE_PASS . SALESFORCE_TOKEN);
} catch (Exception $e) {
  echo $e;
}

 

 

 

And i get the following error message :

 

SoapFault exception: [INVALID_LOGIN] INVALID_LOGIN: Invalid username, password, security token; or user locked out. in soapclient\SforceBaseClient.php:155 Stack trace: #0 [internal function]: SoapClient->__call('login', Array) #1 soapclient\SforceBaseClient.php(155): SoapClient->login(Array) #2 connect.php(33): SforceBaseClient->login('XXX', 'XXX') #3 {main}

 

Just one more information, i'm working on a sandbox,

maybe is it a reason to my problem ?

 

Any ideas about it ?

I'm a beginner with that and I need your help...

Thanks in advance

  • July 19, 2010
  • Like
  • 0