Se agregaron los moduloes de api_v2
This commit is contained in:
15
utils/helpers.py
Normal file
15
utils/helpers.py
Normal file
@@ -0,0 +1,15 @@
|
||||
def soap_error(soap_response): # Testeado
|
||||
"""
|
||||
Verifica si la respuesta SOAP no contiene errores.
|
||||
|
||||
Args:
|
||||
soap_response: Respuesta del servicio SOAP
|
||||
|
||||
Returns:
|
||||
bool: True si no hay errores, False en caso contrario
|
||||
"""
|
||||
if '<ns3:tieneError>true</ns3:tieneError>' in soap_response.text:
|
||||
return True
|
||||
|
||||
# Aquí podrías agregar más lógica para verificar errores específicos en el XML
|
||||
return False
|
||||
Reference in New Issue
Block a user