EnrutarTramiteCredito(Cobis.EnrutarTramiteCredito.Cobis_EnrutarTramite.enrutarTramiteCredito_Input input) { ProxyUtils.ByPassCertificate(); Cobis_EnrutarTramiteCreditoImpl2 ser = new Cobis_EnrutarTramiteCreditoImpl2(); return(ser.EnrutarTramiteCredito(input)); }
public static ServicioResponse crearSolicitud(ConsumerHeader head, ServiceRequest body) { ProxyUtils.ByPassCertificate(); CuadroVentas_CrearSolicitudImpl ser = new CuadroVentas_CrearSolicitudImpl(); ser.consumerHeader = head; ser.Url = ProxyUtils.GetServiceEndpoint("ESBSOAPEndpoint"); ser.Credentials = ProxyUtils.getServiceCredentials(); ser.PreAuthenticate = true; return(ser.CrearSolicitud(body)); }
public static ServicioResponse validarExistencia(ConsumerHeader head, ServiceRequest body) { ProxyUtils.ByPassCertificate(); Cobis_ValidarExistenciaImpl ser = new Cobis_ValidarExistenciaImpl(); ser.consumerHeader = head; ser.Url = "https://172.16.123.110:7094/esb/services/soap"; ser.Credentials = ProxyUtils.getServiceCredentials(); ser.PreAuthenticate = true; return(ser.ValidarExistencia(body)); }
public static ServiceResponse recuperarInfoBasicaPersonaJuridica(ConsumerHeader head, ServiceRequest1 body) { ProxyUtils.ByPassCertificate(); Cobis_RecuperarInfoBasicaPersonaJuriImpl ser = new Cobis_RecuperarInfoBasicaPersonaJuriImpl(); ser.consumerHeader = head; ser.Url = "https://172.16.123.110:7094/esb/services/soap"; ser.Credentials = ProxyUtils.getServiceCredentials(); ser.PreAuthenticate = true; return(ser.RecuperarInformacionBasicaPersonaJuridica(body)); }
public static CrearEstructuraInmob.CrearEstructuraInmob.ServicioResponse crearEstructuraInmobiliaria(CrearEstructuraInmob.CrearEstructuraInmob.ConsumerHeader head, CrearEstructuraInmob.CrearEstructuraInmob.ServiceRequest body) { ProxyUtils.ByPassCertificate(); BancoProyectos_CrearEstructInmoImpl ser = new BancoProyectos_CrearEstructInmoImpl(); ser.consumerHeader = head; ser.Url = ProxyUtils.GetServiceEndpoint("URLCrearEstructura"); NetworkCredential credential = ProxyUtils.getReceivedCredentials(); //si no vienen credenciales basic, no se crea estructura de seguridad. //sino, se genera excepción cuando hayan peticiones sin autenticación. if (credential != null) { ser.Credentials = credential; ser.PreAuthenticate = true; } return(ser.CrearEstructuraInmobiliaria(body)); }
public static ServicioResponse crearSolicitud(ConsumerHeader head, ServiceRequest body) { ProxyUtils.ByPassCertificate(); CuadroVentas_CrearSolicitudImpl ser = new CuadroVentas_CrearSolicitudImpl(); ser.consumerHeader = head; ser.Url = ProxyUtils.GetServiceEndpoint("URLCrearSolicitud"); NetworkCredential credential = ProxyUtils.getReceivedCredentials(); //si no vienen credenciales basic, no se crea estructura de seguridad. //sino, se genera excepción cuando hayan peticiones sin autenticación. if (credential != null) { ser.Credentials = credential; ser.PreAuthenticate = true; } return(ser.CrearSolicitud(body)); }
public Cobis.RecuperarInfoPJ.Cliente_RecuperarInfoPJ.ServicioResponse recuperarInfoBasicaPersonaJuridicaRequest(Cobis.RecuperarInfoPJ.Cliente_RecuperarInfoPJ.ConsumerHeader head, Cobis.RecuperarInfoPJ.Cliente_RecuperarInfoPJ.ServiceRequest body) { ProxyUtils.ByPassCertificate(); Cobis_RecuperarInfoPersonaJuriImpl ser = new Cobis_RecuperarInfoPersonaJuriImpl(); ser.consumerHeader = head; ser.Url = ProxyUtils.GetServiceEndpoint("URLRecuperarInfoPJ"); NetworkCredential credential = ProxyUtils.getReceivedCredentials(); //si no vienen credenciales basic, no se crea estructura de seguridad. //sino, se genera excepción cuando hayan peticiones sin autenticación. if (credential != null) { ser.Credentials = credential; ser.PreAuthenticate = true; } return(ser.RecuperarInformacionPersonaJuridica(body)); }
RecuperarTramites(Cliente_RecuperarTramite.consultarTramitesCreditoPorIdentificacion_Input input) { try { ProxyUtils.ByPassCertificate(); Cliente_RecuperarTramite.Credito_RecuperarTramiteSolicitudesPortTypeClient cliente = new Cliente_RecuperarTramite.Credito_RecuperarTramiteSolicitudesPortTypeClient(); cliente.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); cliente.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(cliente.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); return(cliente.consultarTramitesCreditoPorIdentificacion(input)); } } catch (Exception ex) { throw ex; } }
ValidarExistencia(Cliente_ValidarExistencia_WCF.validarexistencia_Input input) { try { ProxyUtils.ByPassCertificate(); Cliente_ValidarExistencia_WCF.Cliente_validarexistenciaPortTypeClient cliente = new Cliente_ValidarExistencia_WCF.Cliente_validarexistenciaPortTypeClient(); cliente.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); cliente.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(cliente.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); return(cliente.ValidarExistencia(input)); } } catch (Exception ex) { throw ex; } }
public Bizagi.Proxy.Layer.Cobis.EnrutarTramiteCredito.Cobis_EnrutarTramite.enrutarTramiteCredito_Output EnrutarTramiteCredito(Cobis_EnrutarTramite.enrutarTramiteCredito_Input input) { try { ProxyUtils.ByPassCertificate(); Cobis_EnrutarTramite.Credito_EnrutarTramiteCreditoPortTypeClient cliente = new Cobis_EnrutarTramite.Credito_EnrutarTramiteCreditoPortTypeClient(); cliente.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); cliente.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(cliente.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); Bizagi.Proxy.Layer.Cobis.EnrutarTramiteCredito.Cobis_EnrutarTramite.EnrutarTramiteCreditoRsType EnrutarTramiteCreditoRs = new Cobis_EnrutarTramite.EnrutarTramiteCreditoRsType(); var SomeResposne = cliente.enrutarTramiteCredito(input); return(SomeResposne); } } catch (Exception ex) { throw ex; } }
public FirmaDocuementoClient.FirmarDocumentoRsType FirmarDocumento(FirmaDocuementoClient.firmarDocumento_Input input) { try { ProxyUtils.ByPassCertificate(); FirmaDocuementoClient.PKI_FirmaDocumentoPortTypeClient ClientWs = new FirmaDocuementoClient.PKI_FirmaDocumentoPortTypeClient(); ClientWs.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); ClientWs.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(ClientWs.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); var SomeResposne = ClientWs.firmarDocumento(input); return(SomeResposne.FirmarDocumentoRs); } } catch (Exception ex) { throw ex; } }
public etapaEstacionType[] consultarCargaTrabajo(consultarCargaTrabajoPorEtapa_Input input) { try { ProxyUtils.ByPassCertificate(); Credito_ConsultarCargaTrabajoPortTypeClient ClientWs = new Credito_ConsultarCargaTrabajoPortTypeClient(); ClientWs.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); ClientWs.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(ClientWs.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); var SomeResposne = ClientWs.consultarCargaTrabajoPorEtapa(input); return(SomeResposne.ConsultarCargaTrabajoPorEtapaRs); } } catch (Exception ex) { throw ex; } }
public asignarEstacionTramite_Output asignarEstacionTramite(asignarEstacionTramite_Input input) { try { ProxyUtils.ByPassCertificate(); Credito_AsignarEstacionTramitePortTypeClient ClientWs = new Credito_AsignarEstacionTramitePortTypeClient(); ClientWs.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); ClientWs.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(ClientWs.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); var SomeResposne = ClientWs.asignarEstacionTramite(input); return(SomeResposne); } } catch (Exception ex) { throw ex; } }
public static Clinte_HubDocumental.migrarSolicitudReparto_Output GenerarMinuta(Clinte_HubDocumental.migrarSolicitudReparto_Input input) { try { ProxyUtils.ByPassCertificate(); Clinte_HubDocumental.Credito_MigrarSolicitudRepartoPortTypeClient ClientWs = new Clinte_HubDocumental.Credito_MigrarSolicitudRepartoPortTypeClient(); ClientWs.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); ClientWs.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(ClientWs.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); var SomeResponse = ClientWs.migrarSolicitudReparto(input); return(SomeResponse); } } catch (Exception ex) { throw ex; } }
public CorreoSeguroClient.EnviarCorreoSeguroRsType EnviarCorreoSeguro(CorreoSeguroClient.enviarCorreoSeguro_Input input) { try { ProxyUtils.ByPassCertificate(); CorreoSeguroClient.PKI_CorreoSeguroPortTypeClient ClientWs = new CorreoSeguroClient.PKI_CorreoSeguroPortTypeClient(); ClientWs.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); ClientWs.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(ClientWs.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); var SomeResposne = ClientWs.enviarCorreoSeguro(input); return SomeResposne.EnviarCorreoSeguroRs; } } catch (Exception ex) { throw ex; } }
RecuperarInfoBasicaPersonaNatural(ClientePersonaNaturalCliente.recuperarInfoBasica_Input input) { try { ProxyUtils.ByPassCertificate(); ClientePersonaNaturalCliente.Common_MessageSetPortTypeClient cliente = new ClientePersonaNaturalCliente.Common_MessageSetPortTypeClient(); cliente.ClientCredentials.UserName.UserName = ProxyUtils.GetServiceUser("UsrServices"); cliente.ClientCredentials.UserName.Password = ProxyUtils.GetServicePwd("PwdServices"); using (OperationContextScope scope = new OperationContextScope(cliente.InnerChannel)) { OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = ProxyUtils.GetHttpRequestMessageProperty(); var res = cliente.recuperarInfoBasica(input); return(res); } } catch (Exception ex) { throw ex; } }