Re: Returning arrays

From: Date: Sun, 11 Jan 2004 23:26:54 +0000
Subject: Re: Returning arrays
References: 1  Groups: php.soap 
Request: Send a blank email to php-soap+get-1306@lists.php.net to get a copy of this message
Hi please take a look at http://cvs.php.net/co.php/pear/SOAP/example/Attic/disco_server.php regards Dmitri "Manuel VáZquez Acosta" <manu@chasqui.cu> schrieb im Newsbeitrag news:20040111215028.58815.qmail@pb1.pair.com... > 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.

« previous php.soap (#1306) next »