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); } }
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); } }
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); } }
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); } }
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); } }
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); } }