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

From: Date: Mon, 18 Oct 2004 22:55:09 +0000
Subject: [SOAP] Bug in parsing object with two array in it?
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-33962@lists.php.net to get a copy of this message
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" > 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 (#33962) next »