Search code examples
phpsoapwsdlconvertersartifacts

Converting WSDL to PHP source code


A third party provided a WSDL specification, through which I'm going to transfer data to a remote application using SOAP.

I'd like to convert all declared types, constants and method signatures to corresponding classy PHP source code.

Today, I gave WsdlToPhp a try. As far as I figured out, this converter doesn't convert any detail. Furthermore, the documentation has a few rough edges... Maybe a better converter exists.

Q: Could someone propose a stable WSDL to PHP converter?

Please note, that I need a converter to be run offline on a development machine. The WSDL specification isn't publicly available. Therefore, I'm not able to upload the WSDL to a remote converter service.


Solution

  • I think i done it once, use the pear wsdl lib http://pear.php.net/reference/SOAP-0.9.4/SOAP/SOAP_WSDL.html#methodgenerateProxyCode