- file_get_contents: documentation ( source)
- class_exists: documentation ( source)
<?php
if (!class_exists('SoapClient'))
{
die ("You haven't installed the PHP-Soap module.");
}
$wsdl = 'http://localhost:8080/WebService/WebServices?wsdl';
file_get_contents($wsdl);
$client = new SoapClient($wsdl, array(
'soap_version' => SOAP_1_1,
'trace' => 1,
'cache_wsdl' => WSDL_CACHE_NONE, // this is important for the purpose of the test
'exception' => true,
));
?>