• Brad_Baker_62
  • NEWBIE
  • 0 Points
  • Member since 2006

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 4
    Replies
When running the app as below with my SalesForce name and password and I get
"Could not connect to host".  Anyone know what could be causing this?  I do have admin priviledges on my salesforce account.


require_once ('../soapclient/SforcePartnerClient.php5');

try {
  $mySforceConnection = new SforcePartnerClient();
  $mySoapClient = $mySforceConnection->createConnection("partner.wsdl.xml");
  $mylogin = $mySforceConnection->login("name@vocera.com", "password");
 
  $userResult = $mylogin->userInfo;
  echo $userResult->userFullName.', '.$userResult->userEmail.', your session id is '.$mylogin->sessionId;
} catch (Exception $e) {
  echo $e->faultstring;
}
When running the app as below with my SalesForce name and password and I get
"Could not connect to host".  Anyone know what could be causing this?  I do have admin priviledges on my salesforce account.


require_once ('../soapclient/SforcePartnerClient.php5');

try {
  $mySforceConnection = new SforcePartnerClient();
  $mySoapClient = $mySforceConnection->createConnection("partner.wsdl.xml");
  $mylogin = $mySforceConnection->login("name@vocera.com", "password");
 
  $userResult = $mylogin->userInfo;
  echo $userResult->userFullName.', '.$userResult->userEmail.', your session id is '.$mylogin->sessionId;
} catch (Exception $e) {
  echo $e->faultstring;
}