Description:
------------
When implementing a function to handle a soap request in a SoapServer the object that is returned has a specific and obvious structure. It is an object with basic typed members to represent the attributes and one or more complex objects (or an array of objects) for subtags which are built as a similar sort of object.
What I am proposing would be to allow for this same complex object structure to be passed in and parsed by both the SoapClient->{function()} and to be returned by the functions specified to handle the soap request for the SoapServer.
Reproduce code:
---------------
The following is some partial source code that represents how I would like to see objects supported in the client-side:
http://roberts.plumgroup.com/~mjones/soapclient.txt
You can see that there are multiple classes created to contruct the request. The code makes use of both single objects and arrays of objects to create a complex request. You can find a version of the WSDL that this is partially implementing here:
http://roberts.plumgroup.com/~mjones/test.wsdl
Expected result:
----------------
The system should be able to accept this format for incoming objects to properly create a complex soap request such as:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://testurl/Message">
<SOAP-ENV:Body>
<ns1:ivrEvents activityId="101" messageId="12345" source="IVR" version="1.0">
<logOnEvent audienceMemberId="34567" timestamp="2005-11-07T12:27:33"/>
<logOffEvent audienceMemberId="34568" timestamp="2005-11-07T12:27:33" smokeStatus="Smoked" callInitiator="IVR"/>
<logOffEvent audienceMemberId="34569" timestamp="2005-11-07T12:27:33" smokeStatus="SmokeFree" callInitiator="IVR"/>
</ns1:ivrEvents>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This is the format it chooses for objects sent to SoapServer handler functions, it should support it for SoapClient function calls.
Actual result:
--------------
With the above code the current implementation properly creates the logOnEvent subtag and stops there no logOffEvents are added. If you attempt to add multiple logOnEvents alone in an array they are not properly added as multiple logOnEvents either.

I have tested this with php5-win32-latest.zip (it was easier than recompiling for linux) and I am seeing the exact same behavior. Providing an array of objects is not interpreted properly and having more than one subtag object results in the first tag to appear in the WSDL being the only response.