SOAP: array is treated as scalar

From: Date: Mon, 01 Mar 2004 10:23:16 +0000
Subject: SOAP: array is treated as scalar
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-11028@lists.php.net to get a copy of this message
Hi all, I'm using PEAR::SOAP to consume a web service from a .NET box. When getting the data from the web service, an array of complex objects is being treated as a scalar value while other arrays work as expected. The following XML is returned (shortened): <regnskapsbalanse diffgr:id="regnskapsbalanse1" msdata:rowOrder="0" diffgr:hasChanges="inserted"/> <regnskapsbalanse diffgr:id="regnskapsbalanse2" msdata:rowOrder="1" diffgr:hasChanges="inserted"/> while the toolkit treats this as a scalar value: [regnskapsbalanse] => stdClass Object ( .. Other arrays of objects, however, are treated differently: <regnskapsresultat diffgr:id="regnskapsresultat1" msdata:rowOrder="0" diffgr:hasChanges="inserted"/> <regnskapsresultat diffgr:id="regnskapsresultat2" msdata:rowOrder="1" diffgr:hasChanges="inserted"/> are treated like this by the toolkit: [regnskapsresultat] => Array ( [0] => stdClass Object .. Has anybody experienced similar stuff? -- Regards, Marius The trouble with being in the rat race is that even if you win, you're still a rat. - Lily Tomlin Please note that all email to this address will be scanned for spam.

« previous php.pear.general (#11028) next »