call web service - using loop or wait activity or else- in case failure

call web service - using loop or wait activity or else- in case failure

  

Hi there,

I am wondering in my process that calls a web service that is defined in external system. How if there is no connection? how if the external system off?... what is the best practise to do in calling that web service?

- is it using loop, such as:

for(;;) {ret = call web service; if ret="OK" THEN break;}

or using wait activity when not OK then add the timeout..

or else?

Thank you very much,

regards,

Putu

Putu wrote:

Hi there,

I am wondering in my process that calls a web service that is defined in external system. How if there is no connection? how if the external system off?... what is the best practise to do in calling that web service?

- is it using loop, such as:

for(;;) {ret = call web service; if ret="OK" THEN break;}

or using wait activity when not OK then add the timeout..

or else?

Thank you very much,

regards,

Putu

Putu,

You can check if the web service is alive with some methods existed in HTTPREQUEST.

Something like check de status of connection ... http code status ... like 200 OK ... 500 ... so on


If you need some more explanation don't hesitate to contact


Regards


hi Cesar,

Thank you for quick reply. I mean is it a best practise to loop (say it 5 times) to call web-service as there is potential failure?

Or let it go because if fail, os will reexecute?

regards,

P


Solution

sorry, the picture is too big and i cannot edit it (no edit menu)

Solution