WM6681 G06 MSG Modeling
WM6681 G06 MSG Modeling
Importers
Message model
XSD
Legend
WSDL
Bitstream
Logical message or
Modeling the data © Copyright IBM Corporation 2015, 2019
Parser types
Parsers understand the format of messages
• Programmatic parsers
▪ Knowledge of the message format is encoded in a program
▪ Each message format needs a new parser program
• Descriptive parsers
▪ Knowledge of the message format is encoded in a model
▪ A general-purpose parser program uses the model when parsing
▪ Model can be used as-is or generated into code
complex Type
Address CWF
TDS
complexType Group indicator: {
Address Group terminator: }
Tag data separator: :
Element DataElementSeparation: Tagged-Delimited
Line Delimiter: ;
P
Type xsd:String L
h Tag: LINE
o
y
Element g
s
Country i
i Tag: COUNTRY
Type xsd:String c
c
a
a
l
Element l
PostalCode
Tag: ZIP
Type xsd:String
int=5;float=-7.1E8
ASCII text
Initiator Delimiter
floating point
ASCII text
Initiator
integer
You can use the New Message Model wizard to generate a DFDL
schema file by modeling an existing data file
• Comma-separated value (CSV) data
• Record-oriented data
• Custom text or binary data
• COBOL data structures
1 2
Select the method that you want to use to create the DFDL model:
•Create a DFDL schema file by using the wizard
•Create an empty DFDL schema file and model the data by using
the DFDL schema editor
•Import or replace the IBM supplied DFDL schema property
defaults for CSV
Generated model
Logical Physical
structure view Properties
view
Detailed
view
DFDL properties
view
User DFDL
schema
Helper DFDL
schema
Source icon
Reference to helper
DFDL schema
• Test Parse Model: Runs the parser against a data file with the model
• Test Serialize Model: Runs the serializer against logical instance data
• Hide properties / Show properties: Hides or reveals the element Properties
pane
• Show all sections / hide empty sections: Hides or reveals schema definition
sections that contain no information
• Focus on selected: When Show all sections is selected, the focus is on the
currently selected item
• Show quick outline: Displays a summary outline menu of the DFDL schema
• Create logical instance: Creates a logical instance for the Test Serialize Model
1
Click Test Parse Model 2
to run the parser Select a message
3
Click the Run
icon
Sample data
Parsed ‘infoset’
Object in error
Parsed ‘infoset’ up
to the error
Show Hexadecimal
Parsed up to the representation
data in error
Use the DFDL Test perspective to create sample data from the selected DFDL
message to verify that the DFDL schema is correct for creating output
• Test with the populated DFDL Test - Logical Instance view
• Test with content from a file in the workspace or on the file system
2
Select SOAP XML or
Click Message Model to Other XML
create an IBM App Connect
Enterprise library or to
include a model in an
application
On demand or complete
parsing
Validation
Message model
.xsd files
2. True or false:
When writing a message, the DFDL parser generates a
DFDL formatted bit stream from a DFDL domain logical
message tree.