Files
luos/gulliver/thirdparty/pear/SOAP/tools/genproxy.php

21 lines
403 B
PHP
Raw Normal View History

2010-12-02 23:34:41 +00:00
<?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?>";
?>