Soaps returns string while object is expected

Use this forum for all questions related to the source code of OpenEMM

Moderator: moderator

christophe
Posts: 2
Joined: Tue Sep 08, 2015 9:49 am

Soaps returns string while object is expected

Post by christophe »

I'm using the php library found on github. When getting the subscriberBinding the following code is used to parse the response:

Code: Select all

return $this->__generateArrayFromSOAPResult($soapResult->paramNames->x, $soapResult->paramValues->x);
However, the response I receive from the soap call is a string which looks like this:

Code: Select all

string(26) "4;W;0;Opt-Out unsubscribed"
Is it supposed to return a string and is the PHP class on github outdated? or is the response incorrect?