API Connect

API Connect

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.


#API Connect
#Applicationintegration
#APIConnect
 View Only
  • 1.  can we convert json message format to ISO message format

    Posted Mon February 13, 2023 08:55 AM
    Edited by Stefen Salvatore Thu June 08, 2023 01:40 AM

    Hi all,

    Can we convert JSON message coming from input payload to ISO message format and send it to backend and backend again gives ISO message format then I need to convert to JSON and send back to the end user.

    for your complete clarification a text file with exact requirement is attached below. If possible, send me a snippet of gateway script.

    ------------------------------
    Stefen Salvatore
    ------------------------------



  • 2.  RE: can we convert json message format to ISO message format

    Posted Tue February 14, 2023 01:30 AM
    Edited by Stefen Salvatore Thu June 08, 2023 01:39 AM
      |   view attached

    the file is here



    ------------------------------
    Stefen Salvatore
    ------------------------------

    Attachment(s)

    json
    json to iso.json   431 B 1 version


  • 3.  RE: can we convert json message format to ISO message format

    Posted Thu February 16, 2023 03:36 PM

    Hi Vyasavardhan,

    There is nothing out of the box to do this, but I did find https://stackoverflow.com/questions/2686855/is-there-a-javascript-function-that-can-pad-a-string-to-get-to-a-determined-leng where you can use the function provided in the post "A faster method".   Looks like it should do what you want to do.

    Best Regards,
    Steve Linn




    ------------------------------
    Steve Linn
    Senior Consulting I/T Specialist
    IBM
    ------------------------------



  • 4.  RE: can we convert json message format to ISO message format

    This message was posted by a user wishing to remain anonymous
    Posted Wed February 15, 2023 08:48 AM
    This post was removed


  • 5.  RE: can we convert json message format to ISO message format

    Posted Wed February 15, 2023 10:46 AM
    Edited by Stefen Salvatore Thu June 08, 2023 01:38 AM

    hi @Daniel Lisa 

    Which converter you are talking about



    ------------------------------
    Stefen Salvatore
    ------------------------------



  • 6.  RE: can we convert json message format to ISO message format

    Posted Fri February 17, 2023 12:01 PM

    ISO message has a lot flavor (1987, 1997, 2003 etc) and not would be easy to just use a gatescript to do this. IBM AppConnect Enterprise could use DFDL to do this mapping check this https://github.com/ot4i/dfdl-iso8583-tutorial.   We have some DataPower assets to convert iso8583 message to XML and then you could transform XML to JSON.



    ------------------------------
    Gang Wu
    ------------------------------