I am using something called nusoap to connect to webservices but it doesn't seem to work -why not? Thank you
Fatal error: Call to undefined method nusoap_client::ConversionRate() in E:\webserver\htdocs\ws.php on line 12
<?php
require_once 'lib/nusoap.php';
try
{
$oClient = new nuSoap_Client('http://www.webservicex.net/CurrencyConvertor.asmx?
WSDL');
$oResponse = $oClient->ConversionRate(
array(
'FromCurrency' => 'USD',
'ToCurrency' => 'CAD'
)
);
echo $oResponse->ConversionRateResult; #1.2112
}
catch(Exception $oException)
{
printf(
'<h4 style="color: Red">Exception</h4>
<p>%s</p>',
$oException->getMessage()
);
}
?>