Пример #1
0
 def Conectar(self, url="", proxy=""):
     "Establecer la conexión a los servidores de la AFIP"
     if H**O or not url: url = wsbfe.WSBFEURL
     proxy_dict = parse_proxy(proxy)
     try:
         # limpio errores
         self.Exception = self.Traceback = ""
         self.ErrCode = self.ErrMsg = ""
         self.client = SoapClient(url,
                                  action=wsbfe.SOAP_ACTION,
                                  namespace=wsbfe.SOAP_NS,
                                  trace=False,
                                  exceptions=True,
                                  proxy=proxy_dict)
         return True
     except Exception, e:
         ##raise
         if self.LanzarExcepciones:
             raisePythonException(e)
         else:
             ex = traceback.format_exception(sys.exc_type, sys.exc_value,
                                             sys.exc_traceback)
             self.Traceback = ''.join(ex)
             self.Excepcion = traceback.format_exception_only(
                 sys.exc_type, sys.exc_value)[0]
Пример #2
0
 def Conectar(self, url="", proxy=""):
     "Establecer la conexión a los servidores de la AFIP"
     if H**O or not url: url = wdigdepfiel.WSDDFURL
     proxy_dict = parse_proxy(proxy)
     try:
         self.client = SoapClient(url,
             action = wdigdepfiel.SOAP_ACTION, 
             namespace = wdigdepfiel.SOAP_NS,
             trace = False, ns = 'ar', soap_ns='soap',
             exceptions = True, proxy = proxy_dict)
         return True
     except Exception, e:
         ##raise
         raisePythonException(e)
Пример #3
0
 def Conectar(self, url="", proxy=""):
     "Establecer la conexión a los servidores de la AFIP"
     if H**O or not url: url = wsfe.WSFEURL
     proxy_dict = parse_proxy(proxy)
     try:
         self.client = SoapClient(url,
                                  action=wsfe.SOAP_ACTION,
                                  namespace=wsfe.SOAP_NS,
                                  trace=False,
                                  exceptions=True,
                                  proxy=proxy_dict)
         return True
     except Exception, e:
         ##raise
         raisePythonException(e)
Пример #4
0
 def Conectar(self, url="", proxy=""):
     "Establecer la conexión a los servidores de la AFIP"
     if H**O or not url: url = wsfex.WSFEXURL
     proxy_dict = parse_proxy(proxy)
     try:
         # limpio errores
         self.Exception = self.Traceback = ""
         self.ErrCode = self.ErrMsg = ""
         self.client = SoapClient(url, 
             action = wsfex.SOAP_ACTION, 
             namespace = wsfex.SOAP_NS,
             trace = False,
             exceptions = True, proxy = proxy_dict)
         return True
     except Exception, e:
         ##raise
         raisePythonException(e)
Пример #5
0
 def Conectar(self, url="", proxy=""):
     "Establecer la conexión a los servidores de la AFIP"
     if H**O or not url: url = wsbfe.WSBFEURL
     proxy_dict = parse_proxy(proxy)
     try:
         # limpio errores
         self.Exception = self.Traceback = ""
         self.ErrCode = self.ErrMsg = ""
         self.client = SoapClient(url, 
             action = wsbfe.SOAP_ACTION, 
             namespace = wsbfe.SOAP_NS,
             trace = False,
             exceptions = True, proxy = proxy_dict)
         return True
     except Exception, e:
         ##raise
         if self.LanzarExcepciones:
             raisePythonException(e)
         else:
             ex = traceback.format_exception( sys.exc_type, sys.exc_value, sys.exc_traceback)
             self.Traceback = ''.join(ex)
             self.Excepcion = traceback.format_exception_only( sys.exc_type, sys.exc_value)[0]