[wsf-c-dev][PHP]Wsdl Generation - schema types
James Clark
james at wso2.com
Wed Dec 13 02:15:44 PST 2006
For PHP objects, we could allow the user to specify an option on the
WSServer that maps from PHP class names to XML schema types. The
current PHP SOAP extension does something similar but the other way
round ("classmap" mapping from schema types to classes). Of course, we
would need to support this both at the WSDL generation level and at the
type mapping level. Then we need a way to actually do the conversion.
If there's a toXML method on the class, we could call that, otherwise it
would just convert the object to a string (which the user can control by
specifying the __toString magic method).
Another possibility would be to invent some syntax that could be put in
the doc comment to allow the user to specify not just the PHP type but
also the schema type and how to map from the PHP type to the schema
type. Again, this would need to be supported both by the WSDL
generation and by the code that does the type mapping.
James
More information about the Wsf-c-dev
mailing list