Returning Arrays...
| From: | Kris Erickson | Date: | Sat, 13 Sep 2003 01:20:04 +0000 |
| Subject: | Returning Arrays... | ||
| Groups: | php.soap | ||
| Request: | Send a blank email to php-soap+get-1046@lists.php.net to get a copy of this message | ||
Is it possible with PEAR::SOAP to return an array of array items, with the
array being the returned type, not some predefined type being an array of
type metadata? (i.e. in the disco.php server example the way an array is
returned is by creating a type called MP3TracksArray). The soap client in
my case is expecting an array of type metadata, where metadata is defined as
array of <key><value> strings...
<return xsi:type="xsd:Array" ns2:arrayType="ns3:metadata[1]">
<item xsi:type="ns3:metadata">
<item>
<key xsi:type="xsd:string">uri</key>
<value
xsi:type="xsd:string">http://www.google.com/images/logo.gif</value>
</item>
</item>
</return>
I have tried just about everything, to generate this kind of a return type
and have failed utterly so far...