Parsing and Validating SWIFT Files Using SwiftCheck
You can use the SwiftCheck utility to parse and validate one or more SWIFT files. The utility can be used for low-level testing of SWIFT message files. You can configure the SwiftCheck.tra file, and then run the utility. The utility is located in the TIB_ADSWIFT_HOME\bin directory.
If you have not installed TIBCO Enterprise Message Service™ before installing the plug-in, and the installed TIBCO Runtime Agent version is 5.9.x, you have to install TIBCO Enterprise Message Service in the existing TIBCO_HOME, and add the EMS class path to the mySwiftCheck.tra file.
To do so:
- Procedure
-
Open the copied TRA file:
mySwiftCheck.tra. -
Add the following class path to the
tibco.class.path.extendedarea:EMS_HOME/version_number
/lib -
Save the
mySwiftCheck.trafile.
Using the SwiftCheck Utility
You can use the SwiftCheck utility to parse and validate one or more SWIFT files.
To use the SwiftCheck utility:
- Procedure
-
Open a command line and change from the current directory to the plug-in
bindirectory.cd TIB_ADSWIFT_HOME\bin -
Copy the
SwiftCheck.trafile, rename it asmySwiftCheck.tra, and open the copied file in the text editor. -
Change the
application.argsproperty to include the metadata and validation options to use. For example:application.args -dataTIB_ADSWIFT_HOME/bin/data -set year -v
TIB_ADSWIFT_HOME/examples/SampleMT.txt -
Save the properties file and exit the text editor.
-
On a command line, type the following command to start the utility:
SwiftCheck --run --propFile mySwiftCheck.tra