Figure 1: PHP to invoke a web service and display results


<?php

$webServiceClient = new SoapClient
("http://www.webservicex.net/CurrencyConvertor.asmx?wsdl");

$parameters = 
array('FromCurrency'=>"EUR", 'ToCurrency'=>"USD");

$webServiceResponse = 
$webServiceClient->ConversionRate($parameters);

print_r($webServiceResponse);

?>

Disclaimer: This web service is used for illustration only; currency 
conversion values are not necessarily current or accurate.