Returning arrays
| From: | Manuel V�zquez Acosta | Date: | Sun, 11 Jan 2004 21:47:41 +0000 |
| Subject: | Returning arrays | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1305@lists.php.net to get a copy of this message | ||
Hi all:
I'm writing a PEAR::SOAP server, and I need to return an array of instances
of Item; in turn, each Item has a list of related items.
I'm stuck in trying to fugure out how to write the __typedef and
__dispatch_map:
$this->__typedef['{http://www.domain.com}Item'] =
array(
'name' => 'string',
'description' => 'string',
// etc.
'relatedItems' => ???? How do I specify array of Item ???
);
$this->__dispatch_map['GetItems'] =
array(
'in' => array('query' => 'string'),
'out' => array('return' => ?????? array of Item ????)
);
Any help would be appreciated
Manu.