PHP 5 has an extension that greatly simplifies the development in PHP of Web services clients and servers that use the SOAP protocol.
However, to expose the details of use a SOAP Web services it is necessary to also provide a specification XML document of the Web service functions in the WDSL format, so the Web service clients can determine how to call it.
Creating an WDSL service manually is not a trivial task as it requires good knowledge of the protocol specification.
This class provides a solution for automatically generating a WDSL document for a Web service by using the class introspection support built-in PHP 5 using the reflection API.
This way the developers of PHP Web services do not need to learn in depth about SOAP protocol.
PHP 5 provides an extension to provide built-in support for implementing Web services with SOAP, but it does not generate Web Services descriptions in WDSL to let SOAP clients discover how to use the available Web services.
This class generates WSDL using the reflection API of PHP 5 to reverse engineer the class definitions. It only generates RPC WSDL, not Document WSDL.
It has been tested sharing a HelloWorld PHP class with .NET client and worked successfully.