Hi Vijay,
Thanks a lot for the quick response.
But my requirement is I have to make multiple URL calls based on the success responses.Each side call is dependent on previous call and for every call with multiple empid's.
If one of the empId gets fail, we have to throw error with corresponding empId in the logs, continue with next empid.
Here is the sample code which I am expecting and in this I have GET,PATCH,POST calls.
But in xslt we can't make the PATCH call using url-open and all are json messages.
var url1resp= urlvalues+/+test1
if(url1resp==200) {
var Response = JSON.parse(responseData);
response=url1resp.statuscode;
var UserIDs = JSON.parse(responseData).userID;
ctx.setVariable("UserIDsvalue", UserIDs);
var url2= urlvalues+/+test2;
if(url2==200){
// If this call success
var url3= urlvalues+/+test3;
if(url3==200){
loger.error("url3 call fail");
}
} else {
loger.error("url2 call fail");
}
}else {
loger.error("url call fail");
}
Thank you
SK
#DataPower#Support#SupportMigration