<?php
require "entorno/env.php"; 
//tracking de errores:
ini_set("display_errors", 1);
ini_set("display_startup_errors", 1);
error_reporting(E_ALL);

$ns="http://backend7.int/ws/BnaSoap.php";
try {
  $server = new SOAPServer(
    NULL,
    array(
     'uri' => $ns
    )
  );
  $server->addFunction(SOAP_FUNCTIONS_ALL);
  var_dump($server->setClass('BnaSoap'));die();
  $server->setClass('BnaSoap');
  $server->handle();
}

catch (SOAPFault $f) {
  var_dump($f->faultstring);
  die('catched');
}

?>