Very good point! Except the op explicitly asked: "...how to do the 1140 decoding?" Seemed like something is missing from the scenario requiring extra message processing prior to forwarding to MQ.
Original Message:
Sent: Fri August 18, 2023 05:55 AM
From: Hermann Stamm-Wilbrandt
Subject: Need help to do the IBM 1140 decoding in Datapower
Why use GatewayScript at all?
From the OP question a passthru MPGW with MQ backend would do.
Why parse on DP?
------------------------------
Hermann Stamm-Wilbrandt
Compiler Level 3 support
IBM DataPower Gateways (⬚ᵈᵃᵗᵃ / ⣏⠆⡮⡆⢹⠁⡮⡆⡯⠂⢎⠆⡧⡇⣟⡃⡿⡃)
https://stamm-wilbrandt.de/en/blog/
Original Message:
Sent: Thu August 17, 2023 04:23 PM
From: Joseph Morgan
Subject: Need help to do the IBM 1140 decoding in Datapower
What have you tried? That is, have you tried a GatewayScript readAsBuffer() with JSON.parse()?
------------------------------
Joseph Morgan
Original Message:
Sent: Wed August 16, 2023 05:41 PM
From: mu cao
Subject: Need help to do the IBM 1140 decoding in Datapower
consumer sends json message to DP, it includes the 1140 encoded string, DP needs to do 1140 decode and send message to MQ, how to do the 1140 decoding?
Thanks,
David
------------------------------
mu cao
------------------------------