function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ClaiborneClaiborne 

Partner Location vs. Enterprise Location and PHP

The PHP Toolkit only works with the Partner WSDL. This means two things.
 
When you create a session, you have to make sure that you load the partner wsdl file.
 
But it also means that if you use an existing session Id from salesforce.com (like in a web tab or web link), the location has to be the PARTNER location, not the ENTERPRISE location.
 
Even though you use the partner wsdl, you can still access all the custom objects and custom fields by naming them explicitly.
 
I just spent two days tracking this down, with lots of help from Nick Tran at salesforce.com. I had mistakenly used the enterprise location versus the partner location.
 
Be sure with the PHP Toolkit, you always specify the partner location in any web links or web tabs.