They know how to program so that the same values are returned and re-processed when the response of a WebService generates a timeout error, the code is Python
The WebService gives information something like this
ID ='1',
Systema ='PRUEBA',
Nombre = 'EMILIANO',
Paterno ='REYES',
Materno = 'VÁZQUEZ',
Gen = 'M'.
Just as the above information the WebService generates more Contacts, but the problem is that after generating about 3 or 5 contacts the WebService response gives timeout errors like the following
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>A timeout occurred during processing</faultstring>
What you program so that the program does not stop processing when this error.
It is the following:
-
for i in ErrorCode:
salError[0]=i.toxml().replace('<faultcode>','').replace('</faultcode>','')
print salError[0]
while(salError[0]=='02' or salError[0]=='SOAP-ENV:Server' or salError[0]=='03'):
return
-
With this I can not stop the program and continue processing the Contacts
But when the timeout error arises the process goes on to process the next contact when the correct thing should be that it reprocesses the same information again
Example:
Inicia servicio web
procesa contacto 1
ID ='1',
Systema ='PRUEBA',
Nombre = 'EMILIANO',
Paterno ='REYES',
Materno = 'VÁZQUEZ',
Gen = 'M'.
Mark error
<faultcode>SOAP-ENV:Server</faultcode>
<faultstring>A timeout occurred during processing</faultstring>
You should re-reprocess the same information until you stop marking the timeout error
ID ='1',
Systema ='PRUEBA',
Nombre = 'EMILIANO',
Paterno ='REYES',
Materno = 'VÁZQUEZ',
Gen = 'M'.
Proceso Correcto.
If you have any idea how to do that, I would appreciate it.
Thanks in advance.