Port to PEAR and more |
// | Authors: Dietrich Ayala Original Author |
// +----------------------------------------------------------------------+
//
// $Id: xmethods.php 322284 2012-01-14 13:15:06Z clockwerx $
//
// include soap client class
include("SOAP/Client.php");
print "getting wsdl list from xmethods...\n";
$soapclient = new SOAP_Client("http://www.xmethods.net/wsdl/query.wsdl","wsdl");
$params = array();
$summary = $soapclient->call("getAllServiceSummaries", $params);
# !@#^%$ php needs real timeouts on windows
$skip = array('Unisys Weather Web Service');
print "getting wsdls in list...\n";
foreach ($summary as $info) {
var_dump($info);break;
if (in_array($info['name'],$skip)) continue;
print "retrieving {$info['name']}...";
$wsdl = new SOAP_WSDL($info['wsdlURL']);
if ($wsdl->fault) {
print $wsdl->fault->getMessage()."\n";
} else {
print "wsdl parsed OK\n";
}
}
print "\n\n";
?>