Each message set you create specifies a domain, which determines the parser
that is used when parsing and writing all messages defined within that message
set. Each domain is suited to a particular class of messages (fixed-length
binary, delimited text, XML and so on). Additionally, some domains support
several physical formats (sometimes called wire formats).
When you create a message set you need to decide which domain and physical
format to use.
You can select one of the following domains:
- MRM
- For modeling a wide range of messages including XML, fixed-format binary
and formatted text.
- XML, XMLNS or XMLNSC
- For messages conforming to the W3C XML standard.
- JMSMap or JMSStream
- For messages produced by the WebSphere
MQ implementation
of the Java Messaging Service standard.
- IDOC
- For messages in SAP IDoc format.
- MIME
- For handling multipart MIME messages such as SOAP with Attachments or
RosettaNet.
Choose the domain which best fits your messaging needs:
- If your messages are in XML, use either the XML Wire Format in the MRM
domain, or use the XML, XMLNS or XMLNSC domains. Usually, you will find that
the MRM domain offers more flexibility. See XML messages in the MRM and XML domains for more details about the relative strengths and weaknesses
of these options.
- If your messages come from a legacy application written in a language
such as C, COBOL or PL/1, or consist of fixed-format binary data (possibly
including null-terminated strings), use the Custom Wire Format in the MRM
domain.
- If your messages consist of formatted text, perhaps with field content
identified by tags or separated by specific delimiters or both, use the Tagged
Delimited String Format in the MRM domain.
- If you use JMS messages, use either the XML domain, or one of the JMS
domains.
Alternatively, you can specify your own domain. You would typically do
this if you were using WebSphere Message Broker and had
written a user-defined parser to parse your messages, instead of using the
MRM or XML parsers.