Estimados
tengo un problema al querer obtener el CAE en modo produccion del webservices WSFEv1, me da un problema al conectar. En modo homologacion funciona muy bien y ya tengo los certificados para modo produccion que son validos segun la aplicación de verificación de wsaa
El error que me tira es el siguiente: (estuve mirando en el foro y ya han tenido este problema, el tema es que las direcciones están bien y los servidores de afip funcionan en el momento de la ejecución)
C:\pyafipws-master2.10f
C:\Users\Martin\Desktop\Software AFIP\aplicacionJava
Excepcion:
Token: PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9InllcyI/Pgo8c3NvIHZlcnNpb249IjIuMCI+CiAgICA8aWQgdW5pcXVlX2lkPSI0MTcxODU0MTQ4IiBzcmM9IkNOPXdzYWEsIE89QUZJUCwgQz1BUiwgU0VSSUFMTlVNQkVSPUNVSVQgMzM2OTM0NTAyMzkiIGdlbl90aW1lPSIxNDU2MDA5NTM5IiBleHBfdGltZT0iMTQ1NjA1Mjc5OSIgZHN0PSJDTj13c2ZlLCBPPUFGSVAsIEM9QVIiLz4KICAgIDxvcGVyYXRpb24gdmFsdWU9ImdyYW50ZWQiIHR5cGU9ImxvZ2luIj4KICAgICAgICA8bG9naW4gdWlkPSJDPWFyLCBPPXBhYmxvIGphdmllciBvbGl2ZXJhLCBTRVJJQUxOVU1CRVI9Q1VJVCAyMDI0Nzc3MjcyNCwgQ049bXlzIiBzZXJ2aWNlPSJ3c2ZlIiByZWdtZXRob2Q9IjIyIiBlbnRpdHk9IjMzNjkzNDUwMjM5IiBhdXRobWV0aG9kPSJjbXMiPgogICAgICAgICAgICA8cmVsYXRpb25zPgogICAgICAgICAgICAgICAgPHJlbGF0aW9uIHJlbHR5cGU9IjQiIGtleT0iMjAyNDc3NzI3MjQiLz4KICAgICAgICAgICAgPC9yZWxhdGlvbnM+CiAgICAgICAgPC9sb2dpbj4KICAgIDwvb3BlcmF0aW9uPgo8L3Nzbz4KCg==Sign: jMPjYVUoSmIRWLBv5KiMHSVKD263nXuktdccvf2kQYdXJPlvwIbfM+dx5qdktrYb7Ryu0bG7dBWJF4i3bPBz13aCGqJzvKtgWzptpN+aGj8IZLqbvVrWx9YIz9M2j0WaevZzbehs2dqwCMUd1VuNjS/3jZj8ljCx+sNatCe/opI=
ERROR:
<html>
<head><link rel="alternate" type="text/xml" href="/wsfev1/service.asmx?disco" />
<style type="text/css">
BODY { color: #000000; background-color: white; font-family: Verdana; margin-left: 0px; margin-top: 0px; }
#content { margin-left: 30px; font-size: .70em; padding-bottom: 2em; }
A:link { color: #336699; font-weight: bold; text-decoration: underline; }
A:visited { color: #6699cc; font-weight: bold; text-decoration: underline; }
A:active { color: #336699; font-weight: bold; text-decoration: underline; }
A:hover { color: cc3300; font-weight: bold; text-decoration: underline; }
P { color: #000000; margin-top: 0px; margin-bottom: 12px; font-family: Verdana; }
pre { background-color: #e5e5cc; padding: 5px; font-family: Courier New; font-size: x-small; margin-top: -5px; border: 1px #f0f0e0 solid; }
td { color: #000000; font-family: Verdana; font-size: .7em; }
h2 { font-size: 1.5em; font-weight: bold; margin-top: 25px; margin-bottom: 10px; border-top: 1px solid #003366; margin-left: -15px; color: #003366; }
h3 { font-size: 1.1em; color: #000000; margin-left: -15px; margin-top: 10px; margin-bottom: 10px; }
ul { margin-top: 10px; margin-left: 20px; }
ol { margin-top: 10px; margin-left: 20px; }
li { margin-top: 10px; color: #000000; }
font.value { color: darkblue; font: bold; }
font.key { color: darkgreen; font: bold; }
font.error { color: darkred; font: bold; }
.heading1 { color: #ffffff; font-family: Tahoma; font-size: 26px; font-weight: normal; background-color: #003366; margin-top: 0px; margin-bottom: 0px; margin-left: -30px; padding-top: 10px; padding-bottom: 3px; padding-left: 15px; width: 105%; }
.button { background-color: #dcdcdc; font-family: Verdana; font-size: 1em; border-top: #cccccc 1px solid; border-bottom: #666666 1px solid; border-left: #cccccc 1px solid; border-right: #666666 1px solid; }
.frmheader { color: #000000; background: #dcdcdc; font-family: Verdana; font-size: .7em; font-weight: normal; border-bottom: 1px solid #dcdcdc; padding-top: 2px; padding-bottom: 2px; }
.frmtext { font-family: Verdana; font-size: .7em; margin-top: 8px; margin-bottom: 0px; margin-left: 32px; }
.frmInput { font-family: Verdana; font-size: 1em; }
.intro { margin-left: -15px; }
</style>
<title>
Service Web Service
</title></head>
<body>
<div id="content">
<p class="heading1">Service</p><br>
<span>
<p class="intro">Web Service orientado al servicio de Facturacion electronica RG2485 V1</p>
</span>
<span>
<p class="intro">The following operations are supported. For a formal definition, please review the <a href="service.asmx?WSDL">Service Description</a>. </p>
<ul>
<li>
<a href="service.asmx?op=FECAEAConsultar">FECAEAConsultar</a>
<span>
<br>Consultar CAEA emitidos.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECAEARegInformativo">FECAEARegInformativo</a>
<span>
<br>Rendición de comprobantes asociados a un CAEA.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECAEASinMovimientoConsultar">FECAEASinMovimientoConsultar</a>
<span>
<br>Consulta CAEA informado como sin movimientos.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECAEASinMovimientoInformar">FECAEASinMovimientoInformar</a>
<span>
<br>Informa CAEA sin movimientos.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECAEASolicitar">FECAEASolicitar</a>
<span>
<br>Solicitud de Código de Autorización Electrónico Anticipado (CAEA)
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECAESolicitar">FECAESolicitar</a>
<span>
<br>Solicitud de Código de Autorización Electrónico (CAE)
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECompConsultar">FECompConsultar</a>
<span>
<br>Consulta Comprobante emitido y su código.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECompTotXRequest">FECompTotXRequest</a>
<span>
<br>Retorna la cantidad maxima de registros que puede tener una invocacion al metodo FECAESolicitar / FECAEARegInformativo
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FECompUltimoAutorizado">FECompUltimoAutorizado</a>
<span>
<br>Retorna el ultimo comprobante autorizado para el tipo de comprobante / cuit / punto de venta ingresado / Tipo de Emisión
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEDummy">FEDummy</a>
<span>
<br>Metodo dummy para verificacion de funcionamiento
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetCotizacion">FEParamGetCotizacion</a>
<span>
<br>Recupera la cotizacion de la moneda consultada y su fecha
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetPtosVenta">FEParamGetPtosVenta</a>
<span>
<br>Recupera el listado de puntos de venta registrados y su estado
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposCbte">FEParamGetTiposCbte</a>
<span>
<br>Recupera el listado de Tipos de Comprobantes utilizables en servicio de autorización.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposConcepto">FEParamGetTiposConcepto</a>
<span>
<br>Recupera el listado de identificadores para el campo Concepto.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposDoc">FEParamGetTiposDoc</a>
<span>
<br>Recupera el listado de Tipos de Documentos utilizables en servicio de autorización.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposIva">FEParamGetTiposIva</a>
<span>
<br>Recupera el listado de Tipos de Iva utilizables en servicio de autorización.
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposMonedas">FEParamGetTiposMonedas</a>
<span>
<br>Recupera el listado de monedas utilizables en servicio de autorización
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposOpcional">FEParamGetTiposOpcional</a>
<span>
<br>Recupera el listado de identificadores para los campos Opcionales
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposPaises">FEParamGetTiposPaises</a>
<span>
<br>Recupera el listado de los diferente paises que pueden ser utilizados en el servicio de autorizacion
</span>
</li>
<p>
<li>
<a href="service.asmx?op=FEParamGetTiposTributos">FEParamGetTiposTributos</a>
<span>
<br>Recupera el listado de los diferente tributos que pueden ser utilizados en el servicio de autorizacion
</span>
</li>
<p>
</ul>
</span>
<span>
</span>
</body>
</html>
com.jacob.com.ComFailException: Invoke of: Conectar
Source: Python COM Server Internal Error
Description: Unexpected Python Error: Traceback (most recent call last):
File "C:\Python27\lib\site-packages\win32com\server\policy.py", line 277, in _Invoke_
return self._invoke_(dispid, lcid, wFlags, args)
File "C:\Python27\lib\site-packages\win32com\server\policy.py", line 282, in _invoke_
return S_OK, -1, self._invokeex_(dispid, lcid, wFlags, args, None, None)
File "C:\Python27\lib\site-packages\win32com\server\policy.py", line 585, in _invokeex_
return func(*args)
File "C:\pyafipws-master\utils.py", line 269, in Conectar
trace = "--trace" in sys.argv)
File "C:\Python27\lib\site-packages\pysimplesoap\client.py", line 139, in __init__
self.services = wsdl and self.wsdl_parse(wsdl, debug=trace, cache=cache)
File "C:\Python27\lib\site-packages\pysimplesoap\client.py", line 459, in wsdl_parse
wsdl = SimpleXMLElement(xml, namespace=wsdl_uri)
File "C:\Python27\lib\site-packages\pysimplesoap\simplexml.py", line 180, in __init__
self.__document = xml.dom.minidom.parseString(text)
File "C:\Python27\Lib\xml\dom\minidom.py", line 1928, in parseString
return expatbuilder.parseString(string)
File "C:\Python27\Lib\xml\dom\expatbuilder.py", line 940, in parseString
return builder.parseString(string)
File "C:\Python27\Lib\xml\dom\expatbuilder.py", line 223, in parseString
parser.Parse(string, True)
ExpatError: mismatched tag: line 61, column 18
at com.jacob.com.Dispatch.invokev(Native Method)
at com.jacob.com.Dispatch.invokev(Dispatch.java:625)
at com.jacob.com.Dispatch.callN(Dispatch.java:453)
at com.jacob.com.Dispatch.call(Dispatch.java:541)
at modelo.FacturaElectronica.obtenerCAE(FacturaElectronica.java:77)
at controlador.ControladorSistema.autorizarFactura(ControladorSistema.java:266)
at vista.AltaFacturacion.autorizarFactura(AltaFacturacion.java:454)
at vista.AltaFacturacion$8.actionPerformed(AltaFacturacion.java:364)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at vista.AplicacionFacturacion.generarFactura(AplicacionFacturacion.java:189)
at vista.AplicacionFacturacion$5.actionPerformed(AplicacionFacturacion.java:101)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$500(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Saludos y espero una respuesta favorable