Hi ,

I am trying to call a webservice via SoapClient...

webservice:http://www.earthtools.org/timezone/40.71417/-74.00639

dummy Class I am writing

PHP Code:
class worldTimeZone extends SoapClient
{
    private 
$soapurl='http://www.earthtools.org/';
    private 
$long=0//-74.00639
    
private $latitude=0//40.71417
    
private $final_url=NULL;
    
    
//timezone/
    
function __construct($long,$latitude)
    {    
        
$this->long=$long;
        
$this->latitude=$latitude;
        
$this->final_url=$this->soapurl;
        try{
        return new 
SoapClient(NULL,array('location'=>$this->final_url,'uri'=> "http://test-uri/","trace"=> 1,"exceptions" => 0));
        }catch(
Exception $e)
        {
            echo 
'<pre>';
            
var_dump($e);
        }
    }
    
    function 
WB_function()
    {
        echo 
'<pre>';
        return 
$this->_getFunctions();
    }
}

$l=-74.00639;
$la=40.71417;
$sobj=new worldTimeZone($l,$la);
$v=$sobj->__soapCall('timezone',array($l,$la)); 
Error:Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in C:\www\list.php:35

Any idea ...whats wrong...! Or where I am making mistake in my class definition or method...