From: saenz_mariano at hotmail dot com Operating system: Irrelevant PHP version: 5.2CVS-2008-05-17 (CVS) PHP Bug Type: SOAP related Bug description: __soapCall returns an object with missing fields
Description: ------------ My search __soapCall returns results information, plus an array of records. The returned soap looks like the following. <ns2:totalRecords>42</ns2:totalRecords> <ns2:pageSize>1000</ns2:pageSize> <ns2:totalPages>1</ns2:totalPages> <ns2:pageIndex>1</ns2:pageIndex> <ns2:recordList> <ns2:record internalId="263" xsi:type="ns3:CalendarEvent" xmlns:ns3="urn:scheduling_2_6.activities.webservices.netsuite.com"> <ns3:frequency>_none</ns3:frequency> <ns3:seriesStartDate>2003-03-31T00:00:00.000-08:00</ns3:seriesStartDate> <ns3:endByDate>2003-03-31T00:00:00.000-08:00</ns3:endByDate> <ns3:noEndDate>false</ns3:noEndDate> <ns3:title>EOM Company Meeting</ns3:title> <ns3:location>Conference Room</ns3:location> ........ ...... ... <ns2:record internalId="264" xsi:type="ns4:CalendarEvent" xmlns:ns4="urn:scheduling_2_6.activities.webservices.netsuite.com"> <ns4:frequency>_none</ns4:frequency> ..... .. . recordList is returned as "Object of: stdClass" record is an array of stdClass objects. Here is a snapshot of what the schema looks like for the CalendarEvent record <element name="CalendarEvent" type="actSched:CalendarEvent"/> <complexType name="CalendarEvent"> <complexContent> <extension base="platformCore:Record"> <sequence> <element name="title" type="xsd:string" minOccurs="0"/> <element name="noEndDate" type="xsd:boolean" minOccurs="0"/> .... Expected result: ---------------- To have a way to retrieve the object's type and namespace Actual result: -------------- Each record, has all the fields (frequency, seriesStartDate, title, etc), but there isn't any way to get the xsi:type, in this case "CalendarEvent", or the namespace, in this case "urn:scheduling_2_6.activities.webservices.netsuite.com" -- Edit bug report at http://bugs.php.net/?id=45027&edit=1 -- Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=45027&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=45027&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=45027&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=45027&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=45027&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=45027&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=45027&r=needscript Try newer version: http://bugs.php.net/fix.php?id=45027&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=45027&r=support Expected behavior: http://bugs.php.net/fix.php?id=45027&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=45027&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=45027&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=45027&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=45027&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=45027&r=dst IIS Stability: http://bugs.php.net/fix.php?id=45027&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=45027&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=45027&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=45027&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=45027&r=mysqlcfg