Webservice Connector Afterrule capture the response code

Hi everyone,

I have configured the disable operation in the web service connector. I need to capture the response code in the after rule and, based on that, send a notification to the team if the disable operation fails. How can I achieve this using the after rule in the web service connector?

Hi @pradeepireddy_123,

you can read the rawResponseObject, where do you have the response. You can put rawResponseObject into a Map like this:

Map responseMap = jsonUtil.parse(rawResponseObject);

and read the data that you need, later you can send the notification

On top of what Emanuele said,

if you want to check the HTTP Response code, then you could check using the requestEndPoint object.

List responseCodes = requestEndPoint.getResponseCode();

HTH!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.