Wednesday, March 12, 2008

webservices via php soap extention


Now, in php5 using the soap extension we can able to make the web services application very easily


$xConverter = new SoapClient("http://www.webservicex.net/globalweather.asmx?WSDL");
$s =array(
'CountryName' =>"United States",
'CityName' =>"new york",

);

$resObj =$xConverter->GetWeather($s);
echo "<pre>";
print_r($resObj);
echo "</pre>"




No comments:

Post a Comment