fix: nuevos ajustes en enpoints para guardar las petciones a vu

This commit is contained in:
2026-01-02 08:45:46 -07:00
parent b879e5c24d
commit 28d3352543
5 changed files with 100 additions and 0 deletions

View File

@@ -88,6 +88,19 @@ async def consume_ws_get_cove(**kwargs):
cove=cove,
)
# Enviar documento de request a EFC
try:
file_name_request = f"vu_COVE_{pedimento_app}_{cove}_REQUEST.xml"
document_response = await coves_rest_controller.post_document(
soap_response=soap_xml,
organizacion=kwargs.get('pedimento').get('organizacion'),
pedimento=kwargs.get('pedimento').get('id'),
file_name=file_name_request,
document_type=19,
)
except Exception as e:
logger.error(f"Error al enviar documento request: {e}")
soap_headers = {
'Content-Type': 'text/xml; charset=utf-8',
'SOAPAction': '',
@@ -189,6 +202,19 @@ async def consume_ws_get_acuse_cove(**kwargs):
cove=kwargs['cove'].get('cove', None),
)
# Enviar documento de request a EFC
try:
file_name_request = f"vu_AC_COVE_{kwargs.get('pedimento', {}).get('pedimento_app', 'N/A')}_{kwargs['cove'].get('cove', 'N/A')}_REQUEST.xml"
document_response = await coves_rest_controller.post_document(
soap_response=soap_xml,
organizacion=kwargs.get('pedimento').get('organizacion'),
pedimento=kwargs.get('pedimento').get('id'),
file_name=file_name_request,
document_type=23,
)
except Exception as e:
logger.error(f"Error al enviar documento request de acuse cove: {e}")
response = await coves_vu_controller.make_request_async(
"ventanilla-acuses-HA/ConsultaAcusesServiceWS?wsdl",
data=soap_xml,