Re: [SOAP] Bug in parsing object with two array in it?

From: Date: Tue, 19 Oct 2004 04:56:44 +0000
Subject: Re: [SOAP] Bug in parsing object with two array in it?
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33966@lists.php.net to get a copy of this message
That PEAR::SOAP has problems handling nested arrays is a known issue. That it is does not handle nested arrays, a bug. Arnaud. On Mon, 18 Oct 2004 15:55:09 -0700 "Song Qiu" <song.qiu@tumbleweed.com> wrote: > I looked into Base.php. It seems that it has problem parsing object with two > or more arrays in it. In __decode(...) method, after parsing the first > array, it sets $isstruct to true and thus cause the problem. I don't > understand the reason for doing that. But is this a known issue or bug? > > Thanks. > > Song > > > -----Original Message----- > > From: Song Qiu [mailto:song.qiu@tumbleweed.com > <mailto:song.qiu@tumbleweed.com> ] > > Sent: Monday, October 18, 2004 12:51 PM > > To: 'pear-general@lists.php.net' > > Subject: [PEAR] Missing element in SOAP response object > > > > Hi, > > > > I have a PEAR:SOAP client to call a SOAP sever to get an object. After > > receiving the object, I found that there is an attribute missing. Here > > is actual trace info and returned object dump. In there you can see > > that there are two outgTraceEntries entries in the trace. But in the > > object, there is only one (outg entry 2). For incoTraceEntries, it > > looks right, there are two entries in the object. > > > > Any idea why? > > > > Thanks! > > > > Song > > > > > > INCOMING > > > > HTTP/1.1 200 OK > > Server: gSOAP/2.6 > > Content-Type: text/xml; charset=utf-8 > > Content-Length: 2129 > > Connection: close > > > > <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope > > > > xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" > > > > xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"‡l:ä#–… > > ª¤tLBb› > > xmlns:xsd="http://www.w3.org/2001/XMLSchema" > > xmlns:MailGate="urn:MailGate"> <SOAP-ENV:Body > > > > SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encodi > > ng/" id="_0"> <SoapMessageTraceLog> > > <incoTraceEntries xsi:type="xsd:string"> > > inco entry 1 > > </incoTraceEntries> > > <incoTraceEntries xsi:type="xsd:string"> > > inco entry 2 > > </incoTraceEntries> > > <outgTraceEntries xsi:type="xsd:string"> > > outg entry 1 > > </outgTraceEntries> > > <outgTraceEntries xsi:type="xsd:string"> > > outg entry 2 > > </outgTraceEntries> > > </SoapMessageTraceLog> > > </SOAP-ENV:Body> > > </SOAP-ENV:Envelope></pre> > > > > Returned object: > > > > Array > > ( > > [incoTraceEntries] => Array > > ( > > [0] => inco entry 1 > > > > [1] => inco entry 2 > > > > ) > > > > [outgTraceEntries] => outg entry 2 > > > > ) > > > > Thanks. > > > > Song > > > > > > > > > > > > > Thanks. > > Song > > >

« previous php.pear.dev (#33966) next »