Using the any schema element in wsdl with php SoapServer
===

I can't seem to get the XSD <any> element to work in my wsdl using PHP SoapServer. According to everything I have read and seeing how a couple of other companies implement "loose typed" wsdls. The following should be sufficient for retrieving and sending records information.

            <complexType name="Record">
                <sequence>
                    <any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
                </sequence>
            </complexType>

Unfortunately, it seems that the php SoapServer class throws away any elements that are not strictly defined. What I get is empty records on create requests and send empty records on retrieve/filter requests, though the fields are clearly there before the SoapServer handling.

If I specifically define the fields that are missing like this...

            <complexType name="Record">
                <sequence>
                    <element name="FirstName" type="xsd:string" minOccurs="0"/>
                    <element name="LastName" type="xsd:string" minOccurs="0"/>
                    <any namespace="##targetNamespace" minOccurs="0" maxOccurs="unbounded" processContents="lax"/>
                </sequence>
            </complexType>

then all is well and those fields get passed to/from the client. Am I missing something? I have tried all of the namespace options ##any, ##local, etc. and the processContents options. I just want to be able to send/return extra fields of a record regardless if they are detailed out in the schema or not.

Any help appreciated.
