Dear Team,
When i am using below Gatewayscript code, my datapower is going down.
am just doing Multiplication whith while loop.
I know this is Datapower forum please help me to find out because not much difference in script.
apim.readInputAsJSON(function (error, json) {
if (error)
{
// handle error
}
else
{
var x1 = apim.getvariable('json.x');
var y1 = apim.getvariable('json.y');
var Result = 0; //Initializing with 0
while(y1 != 0)
{
Result += x1;
y1--;
}
session.output.write(Result);
// write to the output context
}
});
#DataPower#Support#SupportMigration