wsdl2php is a tool for generating SoapServer/SoapClient classes from a WSDL file.
- Copy src\bin\wsdl2php.php to a folder.
- Open a command prompt in that folder location.
- Use wsdl2php as described below.
For Linux users, src\bin\wsdl2php is a wrapper for easier usage, copy that as well
php wsdl2php.php -i C:\path\to\WSDL
For Linux users, you can just do
wsdl2php -i /path/to/WSDL
Note: the WSDL path can also be an accessible URL.
- -o <output_dir> | directory used for output
- -n | namespace to use
- -g <sub_namespace> | sub-namespace to use
- -p | use pear style Namespace - defaults to PSR-0
- -s | generate code for server side
- -d | turn off documentation generation
- -v | generate all code (docs and unused)
- Knut Urdalen - author
- AustP - contributor
- Joel Barciauskas - contributor
- John Lindal - contributor
Originally cloned from http://www.urdalen.no/wsdl2php/