developerforce/Force.com-Toolkit-for-PHP

We get an error with : SoapClient::__setSoapHeaders

Opened this issue · 3 comments

[error] [client 10.101.0.6] PHP Fatal error: SoapClient::__setSoapHeaders() [soapclient.--setsoapheaders]: Invalid SOAP header in /rl/product/plat/releases/plat/BUSSYS-PLATWEB-1390/web/zf_platform/library/Application/Model/Salesforce/SforceBaseClient.php on line 275

We're getting the exact same error as well. In our case, when it is trying to set the headers on a "create"call, it tries to set the headers with a null value.

@cease15 after seeing this issue: #30, i checked to see if it was logging in properly and it turns out that our security token had changed and thus the login became invalid.

I would check the credentials and update them accordingly. :)

I have been trying to make the salesforce SOAP API Integration working with php 7.0 version. Getting above errors. I have tried different salesforce versions and the latest was 27.0.2. I am getting the following error :


Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; SforcePartnerClient has a deprecated constructor in /home/forge/salesforce.livebetter.bbe .io/public/app/salesforceAPI/soapclient/SforcePartnerClient.php on line 40

Fatal error: Uncaught Error: Call to a member function __setSoapHeaders() on null in /home/forge /salesforce.livebetter.bbe.io/public/app/salesforceAPI/soapclient/SforceBaseClient.php:149 Stack trace: #0 /home/forge/salesforce.livebetter.bbe.io/public/app/salesforceAPI/inc_connection.php(20): SforceBaseClient- >login('paul@bbe.io.dev', 'Medibank@123wcH...') #1 /home/forge/salesforce.livebetter.bbe.io/public/app/themes/livebetter/app/config/site/rest-endpoints /lead.php(20): include_once('/home/forge/sal...') #2 {main} thrown in /home/forge/salesforce.livebetter.bbe.io/public/app/salesforceAPI/soapclient/SforceBaseClient .php on line 149