#!/usr/bin/php
<?php
/* Test d'appel a un WEBService */
$wsdl = 'http://127.0.0.1/~laurent/hello.wsdl';
$options = array('trace'=>true, 'cache_wsdl' => WSDL_CACHE_NONE );

try {
	$soapclt = new SoapClient($wsdl, $options);
	$res = $soapclt->HelloWorld();
	echo "Ok !\n";
	var_dump($res);
} catch (SoapFault $fault) {
	trigger_error("SOAP Fault: (faultcode: {$fault->faultcode}, faultstring: {$fault->faultstring})", E_USER_ERROR);
}
?>
