18 lines
455 B
PHP
Executable File
18 lines
455 B
PHP
Executable File
<?php
|
|
|
|
$servicio="http://localhost:8080/webService/ConversionUnidades?WSDL"; //url del servicio
|
|
$client = new SoapClient($servicio);
|
|
$result = $client->pulgadasCentimetros(array("pulgadas" => 2));
|
|
$funciones=$client->__getFunctions();
|
|
foreach ($result as &$valor) {
|
|
echo "El resultado es: ".$valor;
|
|
echo "<br>";
|
|
}
|
|
$num=0;
|
|
foreach ($funciones as &$valor) {
|
|
echo "Funcion(".$num."): ".$valor;
|
|
echo "<br>";
|
|
$num++;
|
|
}
|
|
|
|
?>
|