Tengo un error que ya me tiene cabrón, cree un servicio en php
Código PHP:
$server = new SoapServer("http://localhost:3001/Service_PHP/?wsdl");
//$server->addFunction("sumar");
$server->setClass("Cls_Operaciones");
//Iniciar el manejador de peticiones SOAP
$server->handle();
class Cls_Operaciones{
function sumar($a,$b){
return "Su result es ".$a + $b;
}
}
y en el cliente tengo lo siguiente
Código PHP:
try {
$ServerClient = new SoapClient("http://localhost:8080/Service_PHP/ServiceServer.php?wsdl");
echo $ServerClient->sumar("5","5");
}catch(SoapFault $e){
echo '<pre>';
print_r($e);
echo '<pre>';
}catch (Exception $ex) {
echo $ex->getMessage();
}
JABÓN DE ERRORES: Parsing WSDL: No se puede cargar desde 'http://localhost:8080/Service_PHP/ServiceServer.php?wsdl': no se pudo cargar entidad externa "http://localhost:8080 /? wsdl Service_PHP / ServiceServer.php "
Saludos