You need to sign in to do that
Don't have an account?
Brad_Baker_62
can't get HelloWorld app running
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;
}
"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;
}
Code:
line to point to that WSDL.
I opened a Support ticket with SalesForce. I'll see where that goes, but if anyone else has any ideas, I'm all ears.
thx, -Brad-
OpenSSL Version OpenSSL 0.9.7a Feb 19 2003
I would recommend installing XAMPP for developers, it's really very easy to get everything installed and up and running. SOAP, SSL, and other things needed by SForce are already enabled.
One thing. I was getting the following warning when running the sample\Welcome.php ...
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\xampp\htdocs\salesforce\samples\header.inc:9) in D:\xampp\htdocs\salesforce\samples\welcome.php on line 32
Commenting out the header.inc lines in the samples allowed it to run.
>
>One thing. I was getting the following warning when running the sample\Welcome.php ...
>Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at D:\xampp\htdocs\salesforce\samples\header.inc:9) in >D:\xampp\htdocs\salesforce\samples\welcome.php on line 32
>
>Commenting out the header.inc lines in the samples allowed it to run.
>
This is just a configuration issue in the PHP.ini you need to set the output buffer to on or 4096. In XAMPP the Php.ini is in the apache/bin folder.
output_buffering = 4096