FuelSDK-PHP icon indicating copy to clipboard operation
FuelSDK-PHP copied to clipboard

Soap error

Open olliefalle opened this issue 7 years ago • 3 comments

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 avatar Apr 04 '19 05:04 olliefalle

@olliefalle any luck on this? I'm having the same problem

garek007 avatar Apr 16 '19 20:04 garek007

@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.

olliefalle avatar Apr 17 '19 04:04 olliefalle

Ok thanks @olliefalle yes I realized I was using the new Installed Package configuration whereas this SDK uses the Legacy.

garek007 avatar Apr 17 '19 17:04 garek007