You want to expose a set of methods via a SOAP web service. You want to automatically generate a WSDL file that describes this service.
The ext/soap extension does not support WSDL generation. However, there are a few other PHP scripts that you can use.
Given the nature of SOAP, it's vital to provide clients with a WSDL file they can use to configure themselves for your server. Unfortunately, ext/soap does not support WSDL generation.
Therefore, you must either generate WSDL by hand from scratch, modify an existing document that supports a similar set of operations, or use an unofficial script, such as:
None of these scripts supports the entire SOAP and WSDL specifications, and each one uses a slightly different syntax to accomplish its goal. You should investigate all of them to see if they do what you need and fit your programming styles.
15.4.4. See Also
The WSDL specification at http://www.w3.org/TR/wsdl.