I have integrated my PHP application with salesforce. I cant retrieve any data from salesforce . I am getting this following error .



    define("USERNAME", "xxxx@yyyy.com");
define("PASSWORD", "***************");
define("SECURITY_TOKEN", "******************");



<head> <title> Salesforce - PHP Integration using SOAP API </title> </head>
    <h3>Salesforce - PHP Integration using SOAP API</h3>
            <th>Record ID</th>
            <th>First Name</th>
            <th>Last Name</th>
require_once ('org_config.php'); //configuration file containg login credentials
        require_once ('soapclient/SforcePartnerClient.php');
        $mySforceConnection = new SforcePartnerClient();
        $mySforceConnection->login(USERNAME, PASSWORD.SECURITY_TOKEN);
        $query = "SELECT Id, FirstName, LastName, Phone from Contact"; //querying data from object
        $response = $mySforceConnection->query($query); //sending request and getting response using SOAP
        foreach ($response->records as $record) //iterating through the response and displaying data
        {   '<tr>
     </tr>'; }?>

enter image description here

I have added extension=php_openssl.dll this line in php.ini. Still I am getting error...Please help me ....

  • Please update your question with a sample of your source code. SFSE is a resource for solving problems relating to the platform. If you don't provide a discrete use-case and details about where you're stuck, it's not a benefit to the community. Sep 30 '15 at 13:25

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.