#!/usr/bin/php -q
<?php
// include the SOAP classes
require_once('nusoap.php');

// define parameter array ()
$param = array();

// define path to server application
$serverpath ='http://www.dkfz-heidelberg.de/spec/soap/php_demo_server/hello.php';

//define method namespace
$namespace="urn:xmethods-BNPrint_Hello";

// create client object
$client = new soapclient($serverpath);

// make the call
$hello $client->call('print_hello',$param,$namespace);

// if a fault occurred, output error info
if (isset($fault)) {
        print 
"Error: "$fault;
        } else {
    
// otherwise output the result
        
print $hello;
        }
// kill object
unset($client);
?>