|
RE: MDX - Missing Cells: msg#00120php.nusoap.general
I wrote a function to read serialize attribute as part of my program, but you need Pear Unserializer.php Class for it to work. require_once ('XML/Unserializer.php'); function nusoap_unserialize ($data, $marker) { # write data to xml file. For some weird reason # the Soap Unserializer require me to read # from an XML file! $handle = fopen("tmp/data.xml", "w"); fwrite($handle, $data); fclose($handle); # set to parse XML attribute $option = array("parseAttributes" => true, "attributeArray" => false); $un = &new XML_Unserializer($option); $status = $un->unserialize("tmp/data.xml", true); if (PEAR::isError($status)) { echo "Error: " . $status->getMessage(); } else { $result = $un->getUnserializedData(); # Only return the part of the array that we want return $result['SOAP-ENV:Body'][$marker]['return']; } } # do your client call as you would normally then issue $data = $client->responseData; $result = nusoap_unserialize($data, "cell"); Hope this helps. Chhai ****************************************************************************** Frontier ISP Pty Ltd Internet access in any flavour Phone: +61 8 8241 5166 Fax: +61 8 8241 5123 -----Original Message----- From: nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx [mailto:nusoap-general-admin@xxxxxxxxxxxxxxxxxxxxx] On Behalf Of Scott Nichol Sent: Monday, 24 May 2004 11:41 PM To: nusoap-general@xxxxxxxxxxxxxxxxxxxxx Subject: Re: [Nusoap-general] MDX - Missing Cells NuSOAP does not de-serialize attributes, which means it ignores CellOrdinal. Scott Nichol Do not send e-mail directly to this e-mail address, because it is filtered to accept only mail from specific mail lists. ----- Original Message ----- From: "Krehl, Matthias (Key-Work)" <matthias.krehl@xxxxxxxxxxx> To: <nusoap-general@xxxxxxxxxxxxxxxxxxxxx> Sent: Monday, May 24, 2004 8:08 AM Subject: [Nusoap-general] MDX - Missing Cells > Hi, > > has someone experiences with quering XML/A? > > My problem is, that NuSOAP seems to drop information when parsing this > (sniplet of) XML-response: > > ... > <Cell CellOrdinal="11"> > <Value xsi:type="xsd:double">33069.766700</Value> > <FmtValue>33.070</FmtValue> > </Cell> > > <Cell CellOrdinal="13"> > <Value xsi:type="xsd:double">64660.252800</Value> > <FmtValue>64.660</FmtValue> > </Cell> > ... > > becomes (print_r()) > > ... > [11] => Array > ( > [Value] => 33069.7667 > [FmtValue] => 33.070 > ) > > [12] => Array > ( > [Value] => 64660.2528 > [FmtValue] => 64.660 > ) > ... > > Notice the CellOrdinal attribute in the XML code. It indicates that there > has been a NULL value in the MDX result (missing #12). Unfortunatley this > information is dropped in the return value of the NuSOAP client (->Call()). > > It would be very difficult for me to change the cube, so ... any > suggestions? Thanks a lot! > > Matthias > > > Matthias Krehl > m_att___hias._kreh_l@xxxxxxxxxxxxxx > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: Oracle 10g > Get certified on the hottest thing ever to hit the market... Oracle 10g. > Take an Oracle 10g class now, and we'll give you the exam FREE. > http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click > _______________________________________________ > Nusoap-general mailing list > Nusoap-general@xxxxxxxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/nusoap-general > ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=ick _______________________________________________ Nusoap-general mailing list Nusoap-general@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/nusoap-general ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149&alloc_id?66&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Adding namespace identifier to Doc/Lit request: 00120, Fred B |
|---|---|
| Next by Date: | Doc/Lit array of arrays...............?: 00120, Fred B |
| Previous by Thread: | Re: MDX - Missing Cellsi: 00120, Scott Nichol |
| Next by Thread: | complextype and undefined type values: 00120, James Yang |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |