Hello,
In a gateway script, I need to generate two variables var1.xml and var1.JSON from input. One variable has xml data and another variable has JSON data. In the gateway script I am planning to use session.output.write (var1). Output of this action is dpvar_1
(1) In second action, I need to validate the var1.JSON with JSON schema. Can I use dpvar_1.JSON as input to this action?
(2) In the third action I need to validate the var1.xml using XML schema. Can I use dpvar_1.xml as input to this action? Sometime this variable (var1.xml) will be null. At this time the xml validation should not happen. (Planning to use Conditional action).
Are the output of the action variables like dpvar_1, dpvar_2 etc context variables? Can these variables be accessed as below in the error rule if there is an error?
var ctx = session.name('input');
var varaction = ctx.getVar('dpvar_1');
This does not work.
#DataPower#Support#SupportMigration