SOAP proplem -- arrays are returned as objects!!
| From: | Mike Barber | Date: | Thu, 01 Apr 2004 20:42:42 +0000 |
| Subject: | SOAP proplem -- arrays are returned as objects!! | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-11574@lists.php.net to get a copy of this message | ||
I have this function called via SOAP:
function getList($a, $b) {
...
while ($dbArray) {
$myArray[] = $dbArray;
...
}
return $myArray;
}
So what I expect to have returned is an array (myArray) which contains
arrays (dbArray).
When the client makes the call, what it gets back is an array of
objects! What is going on? I'm new to SOAP, so I may have missed
something, but as far as I can tell it should be working!