Esempio n. 1
0
        public FECAEResponse AutorizarComprobantes(FEAuthRequest feAuthRequest, FECAERequest feCAERequest)
        {
            try
            {
                using (ServiceSoapClient client = new ServiceSoapClient())
                {
                    return(client.FECAESolicitar(feAuthRequest, feCAERequest));
                }
            }

            catch (Exception ex)
            {
                throw new Exception(errorWsfe + ex.Message);
            }
        }
Esempio n. 2
0
        public CbteTipoResponse GetTiposCbte(FEAuthRequest feAuthRequest)
        {
            try
            {
                CbteTipoResponse result;
                using (ServiceSoapClient client = new ServiceSoapClient())
                {
                    return(result = client.FEParamGetTiposCbte(feAuthRequest));
                }
            }

            catch (Exception excepcionAlInvocarWsfe)
            {
                throw new Exception("***Error INVOCANDO al servicio WFSE : " + excepcionAlInvocarWsfe.Message);
            }
        }
Esempio n. 3
0
        public FECotizacionResponse GetCotizacion(FEAuthRequest feAuthRequest, string MonId)
        {
            try
            {
                FECotizacionResponse result;
                using (ServiceSoapClient client = new ServiceSoapClient())
                {
                    return(result = client.FEParamGetCotizacion(feAuthRequest, MonId));
                }
            }

            catch (Exception excepcionAlInvocarWsfe)
            {
                throw new Exception("***Error INVOCANDO al servicio WFSE : " + excepcionAlInvocarWsfe.Message);
            }
        }
Esempio n. 4
0
        public DummyResponse DummyResponse()
        {
            try
            {
                DummyResponse result;
                using (ServiceSoapClient client = new ServiceSoapClient())
                {
                    return(result = client.FEDummy());
                }
            }

            catch (Exception excepcionAlInvocarWsaa)
            {
                throw new Exception("***Error INVOCANDO al servicio WSAA : " + excepcionAlInvocarWsaa.Message);
            }
        }
Esempio n. 5
0
        public FECompConsultaResponse CompConsultar(FEAuthRequest feAuthRequest, FECompConsultaReq feCompConsultaReq)
        {
            try
            {
                FECompConsultaResponse result;
                using (ServiceSoapClient client = new ServiceSoapClient())
                {
                    return(result = client.FECompConsultar(feAuthRequest, feCompConsultaReq));
                }
            }

            catch (Exception excepcionAlInvocarWsfe)
            {
                throw new Exception("***Error INVOCANDO al servicio WFSE : " + excepcionAlInvocarWsfe.Message);
            }
        }
Esempio n. 6
0
        public FERecuperaLastCbteResponse CompUltimoAutorizado(FEAuthRequest feAuthRequest, int ptoVta, int cbteTipo)
        {
            try
            {
                FERecuperaLastCbteResponse result;
                using (ServiceSoapClient client = new ServiceSoapClient())
                {
                    return(result = client.FECompUltimoAutorizado(feAuthRequest, ptoVta, cbteTipo));
                }
            }

            catch (Exception excepcionAlInvocarWsfe)
            {
                throw new Exception("***Error INVOCANDO al servicio WFSE : " + excepcionAlInvocarWsfe.Message);
            }
        }