AnsweredAssumed Answered

Http State in GEL

Question asked by riteshkumar on Sep 3, 2013
Latest reply on Sep 3, 2013 by gcubed
Hi All,

I'm accessing external web services from several scripts.
All goes well when these services are up and running but thinking of the worst case "services down", I would like to log a message or notify someone etc.

Basically, before invoking the web service, we need to check the http state of that service (200 - works fine, 500 - internal error)

We can do this in Java, export as jar, use coreInvokeStatic in Gel but I'm looking for a more simpler solution (something directly in gel/jelly).

Any pointers would be of great help.

Thanks in advance,
Ritesh Kumar

Outcomes