Skip to content

tool - create php classes from a soap wsdl

Since i am working with a lot of soap services right now i searched for a tool that generates the soap classes for me. Thankts to propel and its "schema.xml" i am getting really lazy for doing such a task by hand ;-). Fortunately, the internet is still a place where everything can be found, so the search engine of my choice scores and found the wsdl2phpgenerator provided by walle.

Simple WSDL to PHP classes converter. Takes a wsdl file and outputs class files ready to use. Uses the MIT licence ( Usage executable: ./wsdl2php -i input.wsdl -o /tmp/my/directory/wsdl
Just add -v to use the verbose mode and -n my\\namespace to add a preferred namespace.

php - debug soap client

If you are using the native php soap client, just enable the trace mechanims and use the build in methods.

array_push($options, array('trace' => 1)); $myPhpSoapClient = new SoapClient($urlToWSDL, $options);
Use a logger for the output or add it at least as hidden value in your output. PHP independent works best with a sniffer tool like wireshark