<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Hello!</title>
</head>

<body>

<?php

require_once('lib/nusoap.php');

$wsdl "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl";

$client = new SoapClient($wsdl"wsdl");

// Display the debug messages
//echo '<h2>Debug</h2>';
//echo '<pre>' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '</pre>';


// Call the SOAP method
$result $client->call('getQuote', array('symbol' => 'SVVS'));

// Check for a fault
if ($client->fault) {
    echo 
'<p><b>Fault: ';
    
print_r($result);
    echo 
'</b></p>';
} else {
    
// Check for errors
    
$err $client->getError();
    if (
$err) {
        
// Display the error
        
echo '<p><b>Error: ' $err '</b></p>';
    } else {
        
// Display the result
        
echo '<h1>Savvis Communications: $';
        
print_r($result);
        echo 
'</h1>';
    }
}


?>





</body>

</html>