File size: 403 Bytes
07c3cdd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?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?>";
?>