public ConsultasWSFex( WSFEX wsfe, LogueadorFe logueador )
 {
     this.wsfe = wsfe;
     this.wa = new WrapperAutorizacion();
     this.logueador = logueador;
     this.managerErrores = new ManagerErroresFe( this.logueador );
 }
 public ConsultasWSMTXCA( WSMTXCA ws, LogueadorFe logueador )
 {
     this.ws = ws;
     this.wa = new WrapperAutorizacion();
     this.logueador = logueador;
     this.managerErrores = new ManagerErroresFe( this.logueador );
 }
 public ConsultasWSFe( WSFEV1 wsfe )
 {
     this.wsfe = wsfe;
     this.wa = new WrapperAutorizacion();
     this.logueador = new LogueadorFe();
     this.managerErrores = new ManagerErroresFe( this.logueador );
 }
        public FacturacionElectronica( TipoWebService tipoWebService )
        {
            this.tipoWebService = tipoWebService;
            this.logueador = new LogueadorFe();

            if ( !this.tipoWebService.Equals( TipoWebService.Exportacion ) )
            {
                ConsultasWS consultas = FactoryConsultasWSNacional.ObtenerInstancia( this.tipoWebService, this.logueador );
                IServidorFacturaElectronica servidorFe = FactoryServidorFacturaElectronica.ObtenerInstancia( this.tipoWebService, consultas.ObtenerWS(), this.logueador );
                this.funcionesFe = new FuncionesFe( this.logueador, consultas, servidorFe );
            }
            this.funcionesFex = new FuncionesFex( new WSFEX(), this.logueador );
        }
 public static ConsultasWS ObtenerInstancia( TipoWebService tipo, LogueadorFe logueador )
 {
     ConsultasWS retorno = null;
     switch ( tipo )
     {
         case TipoWebService.Nacional:
             retorno = new ConsultasWSFe( new WSFEV1(), logueador );
             break;
         case TipoWebService.MTXCA:
             retorno = new ConsultasWSMTXCA( new WSMTXCA(), logueador );
             break;
         default:
             break;
     }
     return retorno;
 }
 public ServidorFacturaElectronicaMTXCA( SoapHttpClientProtocol wsfe, LogueadorFe logueador )
 {
     this.wsfe = (WSMTXCA) wsfe;
     this.logueador = logueador;
 }
 public ServidorFacturaElectronicaExportacion( WSFEX wsfex, LogueadorFe logueador )
 {
     this.wsfex = wsfex;
     this.logueador = logueador;
 }
 public ServidorFacturaElectronicaExportacion( WSFEX wsfex )
 {
     this.wsfex = wsfex;
     this.logueador = new LogueadorFe();
 }
 public FuncionesFe( LogueadorFe logueador, ConsultasWS consultas, IServidorFacturaElectronica servidor )
 {
     this.consultas = consultas;
     this.servidorFe = servidor;
     this.logueador = logueador;
 }
 public FuncionesFex( WSFEX wsfe, LogueadorFe logueador )
 {
     this.wsfex = wsfe;
     this.logueador = logueador;
 }
 public ServidorFacturaElectronica( SoapHttpClientProtocol wsfe )
 {
     this.wsfe = (WSFEV1) wsfe;
     this.logueador = new LogueadorFe();
 }