pear::soap array return problem
| From: | Mike Evans | Date: | Tue, 17 Feb 2004 15:34:20 +0000 |
| Subject: | pear::soap array return problem | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1368@lists.php.net to get a copy of this message | ||
Sorry, I'm new here and saw that there wasn't archives for the group... so accept my apologies if this has been covered before.
I'm building a Webservice with PEAR::SOAP and need to be able to return an unknown number of a particular result. So far I have this in my Class:
$this->__typedef['{http://lifesci.ibsb.arizona.edu/}publication'] =
array('authors' => 'string',
'pub_date'=> 'string',
'title' => 'string',
'source'=> 'string',
'volume'=> 'string',
'pages'=> 'string'
);
$this->__dispatch_map['getPubs'] = array('in' => array('netid' => 'string', 'publimit' => 'int'),
'out' => array( 'publications' => '{http://lifesci.ibsb.arizona.edu/}publications' ));
The problem is, I'm not sure how many publications will be returned from the getPubs() method. Any tips on I can handle this?
Thanks.