Código

Published on December 30th, 2014

0

Snippet PHP 5 – Tasa de Cambio Banguat SOAP

Como diría Linus Torvalds: “Talk is cheap. Show me the code.”

// nusoap-0.9.5
require 'lib/nusoap.php';

$client = new nusoap_client('http://www.banguat.gob.gt/variables/ws/TipoCambio.asmx?WSDL', true);

$error = $client->getError();

if($error){
echo $error;
}else{
$result = $client->call('TipoCambioDia');
print_r($result);
}





Comments are closed.

Back to Top ↑