public static RespuestaInextdsjv ibsTransfPgoOtros(long SUserId, string SCedRif, DateTime SFechaValor, decimal SMonto, string SCtaOrigen, string SNomEmisor, string SCtaDest, string SNomBenef, TransferenciaTipoVia SViaPago, string SCedulaEmisor, string SCedulaBenef, string SSubtipo, string SSCodBco) { InextdsjvIn inextdsjvIn = new InextdsjvIn() { SUserId = SUserId.ToString(), SCedRif = SCedRif, SFechaValor = SFechaValor.ToString("ddMMyyyy"), SMto = SMonto.ToString("#0.00").Replace(",", "").Replace(".", ""), SMoneda = "VEB", SCtaOrigen = SCtaOrigen.Substring(10, 10) }; string str = Formatos.FormatCadena(SNomEmisor.Trim()); if (str.Length > 35) { str = str.Substring(0, 35); } inextdsjvIn.SNomEmisor = str; inextdsjvIn.SCtaDest = SCtaDest; str = Formatos.FormatCadena(SNomBenef.Trim()); if (str.Length > 35) { str = str.Substring(0, 35); } inextdsjvIn.SNomBenef = str; inextdsjvIn.SCodBco = SCtaOrigen.Substring(0, 4); inextdsjvIn.SSubtipo = SSubtipo; inextdsjvIn.SCodBco = SSCodBco; string str1 = ""; switch (SViaPago) { case TransferenciaTipoVia.Switf: { str1 = "S"; break; } case TransferenciaTipoVia.TransferenciaExterna: { str1 = "O"; break; } case TransferenciaTipoVia.TransferenciaExternaTer: { str1 = "U"; break; } case TransferenciaTipoVia.PagoTDC: { str1 = "P"; break; } } inextdsjvIn.SViaPago = str1; inextdsjvIn.SCedulaEmisor = SCedulaEmisor; inextdsjvIn.SCedulaBenef = SCedulaBenef; inextdsjvIn.SPrefijo = string.Empty; inextdsjvIn.SFiller = string.Empty; RespuestaInextdsjv respuestaInextdsjv = null; using (IbsServiceService ibsServiceService = new IbsServiceService()) { ibsServiceService.Timeout = 10000; try { respuestaInextdsjv = ibsServiceService.ibaTransfPgoOtros(inextdsjvIn); if (respuestaInextdsjv == null) { throw new IBException(9998, "SQLIB"); } if (!string.IsNullOrEmpty(respuestaInextdsjv.SError)) { throw new IBException(respuestaInextdsjv.SError, "SQLIB"); } if (respuestaInextdsjv.inextdsjv == null) { throw new IBException(9998, "SQLIB"); } if ((respuestaInextdsjv.inextdsjv.EErrores == null ? false : !string.IsNullOrEmpty(respuestaInextdsjv.inextdsjv.EErrores.SVectorCod))) { throw new IBException(respuestaInextdsjv.inextdsjv.EErrores.SVectorCod, "IBS"); } } catch (WebException webException) { throw new IBException(9997, "SQLIB"); } catch (SoapException soapException) { throw new IBException(9997, "SQLIB"); } } return(respuestaInextdsjv); }