Parsing and Validating SWIFT MX Messages Using SwiftMXCheck

You can use the SwiftMXCheck utility to validate one or more SWIFT MX message files. This utility can be used for low-level testing of SWIFT MX message files.

Procedure

  1. Navigate to the TIBCO_HOME/bw/palettes/swift/version_number/bin directory.
  2. Copy the SwiftMXCheck.tra file, rename the copied file as mySwiftMXCheck.tra, and then open it in the text editor.
  3. Change the application.args property to include the metadata and validation options to use.

    For example,

    application.args

    -mxdata TIBCO_HOME/bw/palettes/swift/version_number/bin/mxdata -set year

    -txsd TIBCO_HOME/bw/palettes/swift/version_number/bin/xsd/year/SwInt.xsd

    -axsd TIBCO_HOME/bw/palettes/swift/version_number/bin/xsd/year/$ahV10.xsd

    -mxsd TIBCO_HOME/bw/palettes/swift/version_number/bin/xsd/year/ -ib IBAN_dir

    -v TIBCO_HOME/bw/palettes/swift/version_number/samples/SampleMX.xml

    Note: For more information about the options, see SwiftMXCheckOptions.
  4. Save the mySwiftMXCheck.tra file and exit the text editor.
  5. Open a command line and change to the TIBCO_HOME/bw/palettes/swift/version_number/bin directory by using the following command:
    cd TIBCO_HOME/bw/palettes/swift/version_number/bin
  6. Type the following command to start the utility:
    SwiftMXCheck --run --propFile mySwiftMXCheck.tra