// Include the SOAP classes require_once('../../admin/test/nusoap.php'); // No params required for this soap call $param = array(); // Define path to server application $serverpath ='http://www.esynaps.com/WebServices/DailyDiblert.asmx'; // Define method namespace $namespace="http://tempuri.org/DailyDilbertImagePath"; // Create client object $client = new soapclient($serverpath); // Initialize soap action $soapaction = 'http://tempuri.org/DailyDilbertImagePath'; // The call $imgPath = $client->call('GetBriefings',$param,$namespace,$soapaction); // Catch errors, or output if (isset($fault)) { echo 'Error: ' . $fault; } else if ($imgPath == -1) { echo 'No image found.'; } else { // Otherwise output the result echo '