public Terminal BuscarTerminalActiva(string codigo)
 {
     try
     {
         IlogicaTerminal terminal = FabricaLogica.GetLogicaTerminal();
         return(terminal.BuscarTerminalActiva(codigo));
     }
     catch (Exception ex)
     {
         throw TheSoapException(ex);
     }
 }
示例#2
0
        public Terminal BuscarTerminalActiva(string codigo)
        {
            try
            {
                IlogicaTerminal terminal = FabricaLogica.GetLogicaTerminal();
                return(terminal.BuscarTerminalActiva(codigo));
            }
            catch (Exception ex)
            {
                XmlDocument _undoc     = new XmlDocument();
                XmlNode     _NodoError = _undoc.CreateNode(XmlNodeType.Element, SoapException.DetailElementName.Name, SoapException.DetailElementName.Namespace);

                XmlNode _nodoDetalle = _undoc.CreateNode(XmlNodeType.Element, "Error", "");
                _nodoDetalle.InnerText = ex.Message;

                _NodoError.AppendChild(_nodoDetalle);

                SoapException _MiEx = new SoapException(ex.Message, SoapException.ClientFaultCode, Context.Request.Url.AbsoluteUri, _NodoError);

                throw _MiEx;
            }
        }