Release Automation

 View Only
  • 1.  Swift messages

    Posted Jun 20, 2016 01:46 AM

    In Below request i am subscribing from Queue , which is swift message the below( red marked) i should convert to Zero in stub response

    {1:F01ANZBAU3MXXXX0001000001}{2:I103CITIFRPPXXXXN}{3:{108:CRLEG1}}{4:

    :20:CRLEG1

    :23B:CRED

    :32A:160520GBP9500,00

    :33B:GBP9500,00

    :50K:/000042GBP50946

    Australia and New Zealand Banking G

    roup Limited

    833 Collins Street

    AU/Melbourne

    :52A:ANZBAU3M***

    :53A:BARCGB22***

    :59:/796707008

    Credit Agricole CIB Australia Limit

    Level 22

    Grosvenor Place

    :70:GS COAL GBP510M DATED 21/1/14 AS AM

    ENDED

    GS COAL GBP520M DATED 21/1/14 AS AM

    ENDED

    :71A:OUR

    -}



  • 2.  Re: Swift messages
    Best Answer

    Posted Jun 20, 2016 10:31 AM

    Hi Anand,

    1. Use the swift data protocol to parse your data.

    2.Genericxml parsers to parse the elements inside the block- use substring() to split the string

    or replaceAll('M','0')

    3.Request data manager to copy the pieces of vse request

     

     

    swift.PNG

    in response match the incomming request with block of data and send response with

     

    <block1>

      <applicationId>F</applicationId>

      <serviceId>01</serviceId>

      <logicalTerminal>{{=request_logicalTerminal01}}0{{=request_logicalTerminal02}}</logicalTerminal>

      <sessionNumber>0001</sessionNumber>

      <sequenceNumber>000001</sequenceNumber>

    </block1>