Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

<?php
error_reporting(E_ALL);
require_once 'SOAP/WSDL.php';

/**
 * genproxy
 *
 * a command line tool for generating SOAP proxies from WSDL files
 *
 * genproxy.php http://site/foo.wsdl > foo.php
 *
 */

function do_wsdl($uri) {
    $wsdl =& new SOAP_WSDL($uri);
    print $wsdl->generateAllProxies();
}
echo "<?php\n\nrequire_once 'SOAP/Client.php';\n\n";
do_wsdl($_SERVER['argv'][1]);
echo "\n?>";
?>