I am building a web service with PHP's SoapServer class. Using the classmap feature works fine and the WSDL types are correctly mapped to the PHP types. However, I am not able to figure out how the instances of the mapped classes are created.
Is there any way to effect the creation of the object generated by the SoapServer? For example something like the __set_state magic method.
Example: I am using the xsd tytes date and datetime respectively. I want to ensure that these are converted into PHP's DateTime classes. What I do not want do to is have a downstream process which does that.