DataPower

DataPower

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Need help to do the IBM 1140 decoding in Datapower

    Posted Thu August 17, 2023 11:26 AM

    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
    ------------------------------


  • 2.  RE: Need help to do the IBM 1140 decoding in Datapower

    Posted Thu August 17, 2023 04:23 PM

    What have you tried?   That is, have you tried a GatewayScript readAsBuffer() with JSON.parse()?



    ------------------------------
    Joseph Morgan
    ------------------------------



  • 3.  RE: Need help to do the IBM 1140 decoding in Datapower

    Posted Fri August 18, 2023 05:55 AM
    Edited by Hermann Stamm-Wilbrandt Fri August 18, 2023 05:55 AM

    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/
    ------------------------------



  • 4.  RE: Need help to do the IBM 1140 decoding in Datapower

    Posted Fri August 18, 2023 08:08 AM

    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.



    ------------------------------
    Joseph Morgan
    ------------------------------



  • 5.  RE: Need help to do the IBM 1140 decoding in Datapower

    Posted Tue August 22, 2023 04:17 PM

    DP does some transformation. Herman, how to set the MQMD header that accepts messageType = 'bytes'?



    ------------------------------
    mu cao
    ------------------------------