You need to sign in to do that
Don't have an account?
joestuart
Multiple connections to SFDC via PHP toolkit - SOAP
Hi
I have made a wordpress module that creates a connection to Salesforce. The modules all work fine when they are the only widgets on the page.
The problem is that I have multiple modules on the page and they are all trying to start a new connection and it only allows for one connection.
Thank you.
I have made a wordpress module that creates a connection to Salesforce. The modules all work fine when they are the only widgets on the page.
The problem is that I have multiple modules on the page and they are all trying to start a new connection and it only allows for one connection.
try { $mySforceConnection = new SforceEnterpriseClient(); $mySoapClient = $mySforceConnection->createConnection( $_SERVER['DOCUMENT_ROOT']."/wp-content/themes/widgets/enterprise.wsdl.xml"); $mylogin = $mySforceConnection->login($USERNAME, $PASSWORD);So my question is, what is the best way to make a connection under my circumstances? Should I make a connection in the first module and then on the following modules check to see if a connection is established and if so get session Id? How should this be done securely With PHP super globals "$_GET"?
Thank you.
All Answers
[1] https://developer.salesforce.com/page/Getting_Started_with_the_Force.com_Toolkit_for_PHP
Thank you for your reply pcon.
It is definitely what I was after. I have managed to successfully start the session but for the subsequent pages I am getting this error:
And the subsequent pages
Thank you.
Thank you Pcon!