function ResultadoDetalleExtendido($Resultado)
 {
     if (!$this->user || !$this->password) {
         $ret = generate_error("Autenticacion", "", "ResultadoDetalleExtendido");
     } else {
         $payload = file_get_contents("php://input");
         log_to_file("wsSeguimiento XMLrequest: " . $payload);
         log_to_file("wsSeguimiento request: " . serialize($Resultado));
         $ret = get_ResultadoDetalleExtendido($Resultado->ResultadoExtendido, $this->user, $this->password);
     }
     log_to_file("wsSeguimiento response: " . serialize($ret));
     return $ret;
 }
        if ($param === false || $param === "") {
            unset($params->Detalles->{$key});
        }
    }
    $params_arr = (array) $params;
    foreach ($params_arr as $key => $param) {
        if ($param === false || $param === "") {
            unset($params->{$key});
        }
    }
    try {
        print_object($params);
        if ($ws) {
            $wsdl = $CFG->wwwroot . '/mod/rcontent/WebServices/wsSeguimiento.php';
            ini_set('soap.wsdl_cache_enabled', '0');
            $options = array('connection_timeout' => 120);
            $options['trace'] = 1;
            $client = @new soapclient($wsdl . '?wsdl', $options);
            $auth = array('User' => $User, 'Password' => $Password);
            $namespace = rcommon_get_wsdl_namespace($wsdl . '?wsdl');
            $header = new SoapHeader($namespace, "WSEAuthenticateHeader", $auth);
            $client->__setSoapHeaders(array($header));
            $return = $client->ResultadoDetalleExtendido($params);
        } else {
            $return = get_ResultadoDetalleExtendido($params);
        }
        print_object($return);
    } catch (Exception $e) {
        print_object($e);
    }
}