Re: a problem with the Soap_wsdl

From: Date: Thu, 09 Jan 2003 15:50:13 +0000
Subject: Re: a problem with the Soap_wsdl
References: 1 2  Groups: php.soap 
Request: Send a blank email to php-soap+get-388@lists.php.net to get a copy of this message
tnk :-) "Dmitri Vinogradov" <dv@allyoucanthink.de> wrote in message news:20030109151320.32266.qmail@pb1.pair.com... > Hi, I thik your function has to be like this: > > function get_tree_by_parent($id){ > return new SOAP_Value( > 'return', > '{urn:NOAM_Soap}ArrayOfDataStruct', > db_get_tree_by_parent($id) ; > } > > Regards > DV > > > "Noam Giladi" <noam@i-com-it.com> schrieb im Newsbeitrag > news:20030109125640.3893.qmail@pb1.pair.com... > > 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="D´ó2`#€jÊð > > E'2http://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 (#388) next »