Generating WSDL Automatically

Generating WSDL Automatically


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:

WSDL_Gen, by George Schlossnagle

wsdl-writer, by Katy Coe based on code by David Griffin

Web service helper, by David Kingma

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.

See Also

The WSDL specification at

 Python   SQL   Java   php   Perl 
 game development   web development   internet   *nix   graphics   hardware 
 telecommunications   C++ 
 Flash   Active Directory   Windows