php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #45027 __soapCall returns an object with missing fields
Submitted: 2008-05-17 02:47 UTC Modified: 2009-04-25 17:39 UTC
Votes:2
Avg. Score:3.5 ± 0.5
Reproduced:1 of 1 (100.0%)
Same Version:1 (100.0%)
Same OS:0 (0.0%)
From: saenz_mariano at hotmail dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2CVS-2008-05-17 (CVS) OS: *
Private report: No CVE-ID: None
 [2008-05-17 02:47 UTC] saenz_mariano at hotmail dot com
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"

Patches

Pull Requests

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Oct 11 21:01:27 2024 UTC