Ira first off thanks for joining the site and sorry for the delay in replying, but I have been busy trying to correct some issues with our processes. I just think that it is the response time from the sforce servers, but maybe I could be completely wrong here. Some of my applications are slow, but then some are fast. I do not think that you really need to use the sessions, but here is an example on how to use sessions
PHP Code:
ini_set("soap.wsdl_cache_enabled","0");
define("_WSDL_",'partner.wsdl.xml');
require_once ('SforcePartnerClient.php');
require_once ('SforceHeaderOptions.php'); // Salesforce Adapter - Header options
try
{
$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection(_WSDL_);
$mylogin = $mySforceConnection->login("user","passandtoken");
$client = new SoapClient("WebsiteIntegrationService.wsdl");
$sforce_header = new SoapHeader("http://soap.sforce.com/schemas/class/WebsiteIntegrationService","SessionHeader",array("sessionId" => $mylogin->sessionId));
$client->__setSoapHeaders(array($sforce_header));
}
catch (exception $e)
{
echo $e->faultstring;
}
If you want, I can take a look at some of your code and see if I can help at all, but you totally seem to know what you are doing, so that is up to you ~Mike
Bookmarks