Good morning. I'm trying to tinker with SOAP Web Service but I'm having problems. When I run the client.php file in the browser it does not work. Does anyone know how to solve it?
server.php
<?php
$options = array('uri' => 'http://alairrepresentacoes-com-br.umbler.net/');
$server = new SoapServer(null, $options);
$server->setClass('MeuSoapServer');
$server->handle();
class MeuSoapServer {
public function mensagem($nome)
{
return "Boas Vindas $nome !";
}
public function soma($a, $b)
{
return $a + $b;
}
}
?>
client.php
<?php
$options = array(
'location' => 'http://alairrepresentacoes-com-br.umbler.net/servidor.php',
'uri' => 'http://alairrepresentacoes-com-br.umbler.net/'
);
$client = new SoapClient(null, $options);
echo $client->mensagem('Douglas') . "<br />";
echo $client->soma(3, 5) . "<br />"
?>
Thank you in advance.