WebSphere Message Broker, Version 8.0.0.7
Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS
See information about the latest product version
See information about the latest product version
Testing a DFDL schema by serializing test output data
You can produce serialized test data from your DFDL schemas by using the DFDL Test Perspective.
Before you start:
Create or open a DFDL schema file.You can use the DFDL Test Perspective to test-serialize
sample data against your selected DFDL message to verify that the
DFDL schema is correct.
- The DFDL Test Perspective opens, and the results of your test-serialize are displayed in the DFDL Test - Serialize view.
- You can view a log of parser actions in the DFDL Test - Trace view.
- You can view the logical instance in the DFDL Test - Logical Instance view, as a tree, or as XML.
- You can change the following settings, and then test-serialize again by clicking the
Run Serializer button in the DFDL Test - Serialize
view.
- In the DFDL Test - Serialize view, you can change the logical instance and encoding.
Next:
- You can continue to edit your DFDL schema by using the DFDL schema editor.
- You can generate a structural preview of a message from your DFDL schema; see Testing a DFDL schema by creating a logical instance.
- You can test-parse sample data against your DFDL schemas, see Testing a DFDL schema by parsing test input data.
- If the DFDL schema is complete, you can add it to a broker archive (BAR) file for deployment; see Creating a broker archive.
Debugging
If an error occurs during parsing, the following resources
are available to help correct the model:
- An error message is displayed. The message summarizes the problem, and contains links to view the trace output.
- The DFDL Test - Serialize view shows the location of the error in the data. At the top of this view is a hyperlink that opens the DFDL Test - Trace view.