public static int LlamadoServicioRetiro(WR_NoBankOfficeSvr.RetSolicitud varrs, int tipoconexion) { WR_NoBankOfficeSvr.NoBankOfficeSvr NBOfficeSvr = new WR_NoBankOfficeSvr.NoBankOfficeSvr(); NBOfficeSvr.Timeout = tiempoespera; int codrespuesta = -1; try { rr = new WR_NoBankOfficeSvr.RetRespuesta(); rr = NBOfficeSvr.solicitudRetiro(varrs); TramaRetorno = rr.CanalOrigen + "|" + rr.IdentificacionDispositivo + "|" + rr.LocalizacionDispositivo + "|" + rr.FechaCompensacion.ToString() + "|" + rr.HoraTransaccion.ToString() + "|" + rr.NumeroSecuencia.ToString() + "|" + rr.CodigoRespuesta.ToString() + "|" + rr.MensajeRespuesta.ToString() + "|" + rr.TipoError.ToString() + "|" + rr.NumeroAutorizacion.ToString() + "|" + rr.CostoTransaccion.ToString() + "|" + rr.FechaCompensacion.ToString(); codrespuesta = rr.CodigoRespuesta; } catch (Exception e) { DataLayer.Procesos.AgregarEventoLog2(fechainiciotransaccion, TramaEnvio, "Error en llamado de servicio: " + e.Message, 1, "", "", tipoconexion); } finally { NBOfficeSvr = null; } return codrespuesta; }
public static void metodo(object rs, int tipoconexion) { WR_NoBankOfficeSvr.RetSolicitud rs2 = (WR_NoBankOfficeSvr.RetSolicitud)rs; WR_NoBankOfficeSvr.NoBankOfficeSvr NBOfficeSvr = new WR_NoBankOfficeSvr.NoBankOfficeSvr(); try { rr = new WR_NoBankOfficeSvr.RetRespuesta(); rr = NBOfficeSvr.solicitudRetiro(rs2); TramaRetorno = rr.CanalOrigen + "|" + rr.IdentificacionDispositivo + "|" + rr.LocalizacionDispositivo + "|" + rr.FechaCompensacion.ToString() + "|" + rr.HoraTransaccion.ToString() + "|" + rr.NumeroSecuencia.ToString() + "|" + rr.CodigoRespuesta.ToString() + "|" + rr.MensajeRespuesta.ToString() + "|" + rr.TipoError.ToString() + "|" + rr.NumeroAutorizacion.ToString() + "|" + rr.CostoTransaccion.ToString() + "|" + rr.FechaCompensacion.ToString(); } catch (Exception e) { DataLayer.Procesos.AgregarEventoLog2(fechainiciotransaccion, TramaEnvio, "Error en llamado de servicio: " + e.Message, 1, "", "", tipoconexion); } }