FuelSDK-PHP
FuelSDK-PHP copied to clipboard
Soap error
I have just started using this SDK but getting an issue.
SoapClient::__doRequest() returned non string value
This is my index file:
<?php
require __DIR__ . '/vendor/autoload.php';
use FuelSdk\ET_Client;
use FuelSdk\ET_List;
$myclient = new ET_Client(true);
$getList = new ET_List();
$getList->authStub = $myclient;
$getResponse = $getList->get();
print_r($getResponse);
?>
Config file:
<?php
return array(
'appsignature' => 'none',
'clientid' => 'xxxxxxxx',
'clientsecret' => 'xxxxxxxxx',
'defaultwsdl' => 'https://webservice.exacttarget.com/etframework.wsdl',
'xmlloc' => __DIR__.'/wsdl/ExactTargetWSDL.xml',
'baseUrl' => 'https://xxxxx.rest.marketingcloudapis.com/',
'baseAuthUrl' => 'https://xxxxxxxx.auth.marketingcloudapis.com/',
'baseSoapUrl' => 'https://xxxxxxxx.soap.marketingcloudapis.com/',
);
Have searched everywhere for a solution but cant find anything.
Any ideas?
@olliefalle any luck on this? I'm having the same problem
@garek007 I managed to get past this issue as i think there was a permission problem. My problem now is that i can't access data from a shared DE.
Ok thanks @olliefalle yes I realized I was using the new Installed Package configuration whereas this SDK uses the Legacy.