Exemple #1
0
 /// <remarks/>
 public void FEConsultaCAERequestAsync(FEAuthRequest argAuth, FEConsultaCAEReq argCAERequest, object userState) {
     if ((this.FEConsultaCAERequestOperationCompleted == null)) {
         this.FEConsultaCAERequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFEConsultaCAERequestOperationCompleted);
     }
     this.InvokeAsync("FEConsultaCAERequest", new object[] {
                 argAuth,
                 argCAERequest}, this.FEConsultaCAERequestOperationCompleted, userState);
 }
Exemple #2
0
 public FEConsultaCAEResponse FEConsultaCAERequest(FEAuthRequest argAuth, FEConsultaCAEReq argCAERequest) {
     object[] results = this.Invoke("FEConsultaCAERequest", new object[] {
                 argAuth,
                 argCAERequest});
     return ((FEConsultaCAEResponse)(results[0]));
 }
Exemple #3
0
 /// <remarks/>
 public void FEConsultaCAERequestAsync(FEAuthRequest argAuth, FEConsultaCAEReq argCAERequest) {
     this.FEConsultaCAERequestAsync(argAuth, argCAERequest, null);
 }
Exemple #4
0
 public FEResponse FEAutRequest(FEAuthRequest argAuth, FERequest Fer) {
     object[] results = this.Invoke("FEAutRequest", new object[] {
                 argAuth,
                 Fer});
     return ((FEResponse)(results[0]));
 }
Exemple #5
0
 /// <remarks/>
 public void FEAutRequestAsync(FEAuthRequest argAuth, FERequest Fer) {
     this.FEAutRequestAsync(argAuth, Fer, null);
 }
Exemple #6
0
 public FEUltNroResponse FEUltNroRequest(FEAuthRequest argAuth) {
     object[] results = this.Invoke("FEUltNroRequest", new object[] {
                 argAuth});
     return ((FEUltNroResponse)(results[0]));
 }
Exemple #7
0
 /// <remarks/>
 public void FEUltNroRequestAsync(FEAuthRequest argAuth) {
     this.FEUltNroRequestAsync(argAuth, null);
 }
Exemple #8
0
 /// <remarks/>
 public void FERecuperaLastCMPRequestAsync(FEAuthRequest argAuth, FELastCMPtype argTCMP, object userState) {
     if ((this.FERecuperaLastCMPRequestOperationCompleted == null)) {
         this.FERecuperaLastCMPRequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnFERecuperaLastCMPRequestOperationCompleted);
     }
     this.InvokeAsync("FERecuperaLastCMPRequest", new object[] {
                 argAuth,
                 argTCMP}, this.FERecuperaLastCMPRequestOperationCompleted, userState);
 }
Exemple #9
0
 /// <remarks/>
 public void FERecuperaLastCMPRequestAsync(FEAuthRequest argAuth, FELastCMPtype argTCMP) {
     this.FERecuperaLastCMPRequestAsync(argAuth, argTCMP, null);
 }
Exemple #10
0
 public FERecuperaLastCMPResponse FERecuperaLastCMPRequest(FEAuthRequest argAuth, FELastCMPtype argTCMP) {
     object[] results = this.Invoke("FERecuperaLastCMPRequest", new object[] {
                 argAuth,
                 argTCMP});
     return ((FERecuperaLastCMPResponse)(results[0]));
 }
Exemple #11
0
 /// <remarks/>
 public void FERecuperaQTYRequestAsync(FEAuthRequest argAuth) {
     this.FERecuperaQTYRequestAsync(argAuth, null);
 }
Exemple #12
0
        public void ObtenerTicket(string RutaCertificado, long Cuit, string Servicio)
        {
            LoginTicket objTicketRespuesta;
            string strTicketRespuesta;
            try
            {
                //Crear WebProxy
                System.Net.WebProxy wp = null;
                //if (!System.Configuration.ConfigurationManager.AppSettings["Proxy"].ToUpper().Equals("NO"))
                //{
                //    wp = new System.Net.WebProxy(System.Configuration.ConfigurationManager.AppSettings["Proxy"], false);
                //    string usuarioProxy = System.Configuration.ConfigurationManager.AppSettings["UsuarioProxy"];
                //    string claveProxy = System.Configuration.ConfigurationManager.AppSettings["ClaveProxy"];
                //    string dominioProxy = System.Configuration.ConfigurationManager.AppSettings["DominioProxy"];

                //    System.Net.NetworkCredential networkCredential = new System.Net.NetworkCredential(usuarioProxy, claveProxy, dominioProxy);
                //    wp.Credentials = networkCredential;

                //    //System.Net.CredentialCache credentialCache = new System.Net.CredentialCache();
                //    //string wsaaurl = System.Configuration.ConfigurationManager.AppSettings["ar_gov_afip_wsaa_LoginCMSService"];
                //    //credentialCache.Add(new Uri(wsaaurl), "NTLM", networkCredential);
                //    //string wsfeurl = System.Configuration.ConfigurationManager.AppSettings["ar_gov_afip_wsw_Service"];
                //    //credentialCache.Add(new Uri(wsfeurl), "NTLM", networkCredential);
                //    //wp.Credentials = credentialCache;
                //}
                //URL Login
                string urlWsaa = System.Configuration.ConfigurationManager.AppSettings["ar_gov_afip_wsaa_LoginCMSService"];
                //Obtener Ticket
                string servicio = DEFAULT_SERVICIO;
                if (Servicio != "")
                {
                    servicio = Servicio;
                }
                strTicketRespuesta = ObtenerLoginTicketResponse(servicio, urlWsaa, RutaCertificado, false, Wp);
                objAutorizacion = new ar.gov.afip.wsw.FEAuthRequest();
                objAutorizacion.Token = Token;
                objAutorizacion.Sign = Sign;
                objAutorizacion.cuit = Cuit;
                objAutorizacionfev1 = new ar.gov.afip.wsfev1.FEAuthRequest();
                objAutorizacionfev1.Token = Token;
                objAutorizacionfev1.Sign = Sign;
                objAutorizacionfev1.Cuit = Cuit;
                objAutorizacionfexv1 = new ar.gov.afip.wsfexv1.ClsFEXAuthRequest();
                objAutorizacionfexv1.Token = Token;
                objAutorizacionfexv1.Sign = Sign;
                objAutorizacionfexv1.Cuit = Cuit;
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }