Can you create "real" associative arrays in wsdl? The way I've solved is like below. <wsdl:types> <xsd:schema targetNamespace="http://nonexisting.com/nm"> <xsd:import namespace="http://schemas.xmlsoap.org/soap/encoding/"/> <xsd:complexType name="Item"> <xsd:sequence> <xsd:element name="key" type="xsd:string"/> <xsd:element name="val" type="xsd:string"/> </xsd:sequence> </xsd:complexType> <xsd:complexType name="ItemList"> <xsd:complexContent> <xsd:restriction base="soapenc:Array"> <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="tns:Item[]"/> </xsd:restriction> </xsd:complexContent> </xsd:complexType> </xsd:schema> </wsdl:types> Regards Danne Lundqvist -----Ursprungligt meddelande----- Från: arcade@auditiv.org [mailto:arcade@auditiv.org] Skickat: den 18 januari 2005 15:53 Till: soap@lists.php.net Ämne: Again Complex Types in Response Hello * I've buildt a webservice with PEAR::SOAP using WSDL... and try to have returned an assoziative ARRAY as response (like $result["user"]["anything"]). without using assoziative arrays within the server function it works fine. case: I return array(245,49); and I get an Array $result[0]=245 [1]=49 in PHP. well. case: I return an array("user"=>246,"country"0>49) it returns a stdClass Object in PHP. I tried to figure out what the matter could be. I guessed it's the __dispatch_map or maybe a bug? , but I'm stuck with no idea where to start searching for help. so, is there anyone with a hint.. regards & thx ;] -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ______________________________________ OBS! Vi har ändrat våra e-postadresser, se avsändaradressen ovan. V.g. uppdatera dina eventuella sändlistor. N.B. Our e-mail addresses are changed (see above sender address). Please change any sendlists accordingly. Thank you. ______________________________________ This message and any files or documents attached are confidential and may also be legally privileged or protected by other legal rules. It is intended only for the individual or entity named. If you are not the named addressee or you have received this email in error, please inform the sender immediately, delete it from your system and do not copy or disclose it or its contents or use it for any purpose. Thank you. Please also note that transmission cannot be guaranteed to be secure or error-free. -- PHP Soap Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php