a problem with the Soap_wsdl

From: Date: Thu, 09 Jan 2003 12:58:07 +0000
Subject: a problem with the Soap_wsdl
Groups: php.soap 
Request: Send a blank email to php-soap+get-385@lists.php.net to get a copy of this message
i use the Dimitri Vinogradov Disco file. i have creat a class $this->__typedef['DataStruct'] = array( 'id' => 'int', 'parent' => 'int', 'data1' => 'string', 'data2' => 'string', ); and i define an array of the class $this->__typedef['ArrayOfDataStruct'] = array( array('item'=>'{urn:NOAM_Soap}DataStruct') ); now i define this function $this->__dispatch_map['get_tree_by_parent'] = array('in' => array('in' => 'int'), 'out' => array('return' => '{urn:NOAM_Soap}ArrayOfDataStruct') ); and creat this function function get_tree_by_parent($id){ return db_get_tree_by_parent($id) ; } the db function return the requested array . the soap message the server return to me is: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns4="urn:NOAM_Soap" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <SOAP-ENV:Body> <ns4:get_tree_by_parentResponse> <return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="Struct[2]" SOAP-ENC:offset="[0]"> <item> <id xsi:type="xsd:int">0</id> <parent xsi:type="xsd:int">0</parent> <data1 xsi:type="xsd:string">test1</data1> <data2 xsi:type="xsd:string">test1 data</data2></item> <item> <id xsi:type="xsd:int">9</id> <parent xsi:type="xsd:int">0</parent> <data1 xsi:type="xsd:string">data</data1> <data2 xsi:type="xsd:string">new data from c</data2></item> </SOAP-ENV:Body> </SOAP-ENV:Envelope> </textarea> everything seem ok but the client can't open the message . can anybody see the reason? tnk noam

« previous php.soap (#385) next »