PortMapping examples

A collection of examples to show how to declare Port Mappings for ISO-8583 protocol


BCD

    "port": 8991,
    "resourceName": "ISO-8583-port-8991",
    "timeout": 60000,
    "status": "INACTIVE",
    "mappingProperties":{
        "headerLength": 10,
        "secondaryBitmapMandatory": false,
        "tertiaryBitmapMandatory": false,
        "mtiEncodingType": "BCD",
        "headerEncodingType": "BCD",
        "bitmapEncodingType": "HEXA",
        "bitmapEncoded": true
    },
    "mapping": [
      {
        "mti": "0100",
        "headers": [
            {"name": "type",        "length": "2"},
            {"name": "destination", "length": "4"},
            {"name": "origin",      "length": "4"}
        ],
        "fields": [
          { "id": "03", "name": "processingCode",       "length": "6",   "type": "NUMERIC"},
          { "id": "04", "name": "amount",               "length": "12",  "type": "NUMERIC"},
          { "id": "11", "name": "stan",                 "length": "6",   "type": "NUMERIC"},
          { "id": "48", "name": "additionalData",       "length": "999", "type": "LLLVAR", "tags": [
              { "id": "02", "name": "a1", "length": "8" , "type": "LLLVAR"},
              { "id": "43", "name": "a2", "length": "14", "type": "LLLVAR"}
          ]}
        ]
      },
      {
        "mti": "0110",
        "fields": [
          { "id": "03", "name": "processingCode", "length": "6",  "type": "NUMERIC"},
          { "id": "11", "name": "stan",           "length": "6",  "type": "NUMERIC"},
          { "id": "39", "name": "responseCode",   "length": "2",  "type": "ALPHA"  }
        ]
      }
    ]

HEXA EBCDIC

    "port": 8991,
    "resourceName": "ISO-8583-port-8991",
    "timeout": 60000,
    "status": "INACTIVE",
    "mappingProperties":{
        "headerLength": 10,
        "secondaryBitmapMandatory": false,
        "tertiaryBitmapMandatory": false,
        "mtiEncodingType": "HEXA_EBCDIC",
        "headerEncodingType": "BCD",
        "bitmapEncodingType": "HEXA_EBCDIC",
        "bitmapEncoded": true
    },
    "mapping": [
      {
        "mti": "0100",
        "headers": [
            {"name": "type",        "length": "2"},
            {"name": "destination", "length": "4"},
            {"name": "origin",      "length": "4"}
        ],
        "fields": [
          { "id": "03", "name": "processingCode",       "length": "6",   "type": "NUMERIC", "encoding": "HEXA", "charset": "Cp1047" },
          { "id": "04", "name": "amount",               "length": "12",  "type": "NUMERIC", "encoding": "HEXA", "charset": "Cp1047" },
          { "id": "11", "name": "stan",                 "length": "6",   "type": "NUMERIC", "encoding": "HEXA", "charset": "Cp1047" },
          { "id": "48", "name": "additionalData",       "length": "999", "type": "LLLVAR", "encoding": "HEXA", "charset": "Cp1047", "encodedLength": true, "encodedTagName": true, "tags": [
              { "id": "02", "name": "a1", "length": "8" , "type": "LLLVAR", "encoding": "HEXA", "encodedLength": true, "charset": "Cp1047"},
              { "id": "43", "name": "a2", "length": "14", "type": "LLLVAR", "encoding": "HEXA", "encodedLength": true, "charset": "Cp1047"}
          ]}
        ]
      },
      {
        "mti": "0110",
        "fields": [
          { "id": "03", "name": "processingCode", "length": "6",  "type": "NUMERIC", "encoding": "HEXA", "charset": "Cp1047" },
          { "id": "11", "name": "stan",           "length": "6",  "type": "NUMERIC", "encoding": "HEXA", "charset": "Cp1047" },
          { "id": "39", "name": "responseCode",   "length": "2",  "type": "ALPHA"  , "encoding": "HEXA", "charset": "Cp1047" }
        ]
      }
    ]