Hello,
In binary transform action - we are sending an request to an external server using dp:url-open with response set as responsecode-binary, its then saved in context variable and xsl:message terminate is invoked if responsecode is not 200.
I'm in error processing using gatewayscript. Now, is there a way in gatewayscript to convert this binary nodeset to string? I've tried using toString() method, but its not working as expected.
Output is " [object NodeList]"
What I'm doing wrong? Please help to handle this case.
var rawResponse = ctx.getVariable('Response').toString("hex");
console.debug(rawResponse);------------------------------
Thanks,
Kumar
------------------------------