Parsing and Validating SWIFT MX/CBPR+ 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
- Navigate to the TIBCO_HOME/bw/palettes/swift/version_number/bin directory.
- Copy the SwiftMXCheck.tra file, rename the copied file as mySwiftMXCheck.tra, and then open it in the text editor.
- 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.xmlFor more information about the options, see SwiftMXCheck Options.
Note: For the CBPR+ message, the argument mxsd should contain the full path of the .xsd file, that is-mxsd TIBCO_HOME/bw/palettes/swift/version_number/bin/xsd/year/xsd_name.xml.The path separator should be OS-specific. For Windows (using backward slash (\) in the path), Linux (using forward slash (/) in the path) and MAC OS(using forward slash (/) in the path).
For example, if you are using the SwiftMXCheck utility for a cbpr+ message CBPRPlus-pacs_009_001_08_ADV. Then the mxsd argument should be
-mxsd TIBCO_HOME/bw/palettes/swift/version_number/bin/xsd/year/CBPRPlus-pacs_009_001_08_ADV.xml. - Save the mySwiftMXCheck.tra file and exit the text editor.
- Open a command line and navigate 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 - Type the following command to start the utility:
SwiftMXCheck --run --propFile mySwiftMXCheck.tra