You need to sign in to do that
Don't have an account?
J. J. Mark
SOAP PHP API - Could not connect to host
Using API Version 33.0. Simple code below results with "Cound not connect to host".
I am reasonably certain this has to do with recent PHP/OpenSSL security fixes, but not sure how to fix it with the Salesforce API. We've fixed this issue in other integrations (e.g. Marketo) by enhancing the SoapClient instantiation with "$options = array('ssl' => array('verify_peer' => false, 'allow_self_signed' => true));" but with the Salesforce API we do not have direct access to the options for the Soap Client instantiation.
Help?
TIA
==============================================
I am reasonably certain this has to do with recent PHP/OpenSSL security fixes, but not sure how to fix it with the Salesforce API. We've fixed this issue in other integrations (e.g. Marketo) by enhancing the SoapClient instantiation with "$options = array('ssl' => array('verify_peer' => false, 'allow_self_signed' => true));" but with the Salesforce API we do not have direct access to the options for the Soap Client instantiation.
Help?
TIA
==============================================
require_once ('salesforce2/SforcePartnerClient.php'); require_once ('salesforce2/SforceHeaderOptions.php'); try { $mySforceConnection = new SforcePartnerClient(); $mySoapClient = $mySforceConnection->createConnection('partner.wsdl.xml'); $location=$mySforceConnection->getLocation(); $mySforceConnection->setEndpoint($location); $mylogin = $mySforceConnection->login('user', 'password'); } catch (Exception $e) { echo $mySforceConnection->getLastRequest(); echo $e->faultstring; }
This should certainly work. Are you in developer edition ?