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

DFDL encoding information

When a broker calls a parser or serializer, the broker provides the parser or serializer with encoding information that defines the character encoding (CCSID) and numeric encoding (byte order and floating point representation) of the data that is to be parsed or serialized.

When parsing or serializing messages in the DFDL domain, the DFDL parser or DFDL serializer is called. The way that the DFDL parser and DFDL serializer use encoding information is defined by your DFDL message model.

In a DFDL message model, you must set the character encoding (CCSID) and numeric encoding (byte order and floating point representation) by using DFDL properties on each type definition. DFDL predefines a set of external variables, each of which has default values that can be externally overridden. It is these predefined variables that the broker overrides to pass in encoding information. For more information about DFDL predefined variables, see DFDL predefined variables in IBM WebSphere Message Broker.

If you have set the encoding properties in your DFDL message model to specific, static types, the DFDL parser and DFDL serializer interpret message data by using this static encoding information, and ignore the encoding information that is provided by the broker for each individual message instance. Note that if you set the encoding properties in your DFDL message model to specific, static types, and the message data is not encoded in the format that you specified, you might encounter the following problems:
  • Parsing errors due to the message data being interpreted incorrectly
  • Incorrect numeric values due to the wrong byte order (endianness) being used
To avoid these problems, set the DFDL encoding properties in your DFDL message model as follows:
  • encoding: {dfdl:encoding}
  • byteOrder: {dfdl:byteOrder}
  • binaryFloatRep: {dfdl:binaryFloatRep}
These settings allow the DFDL parser to correctly interpret your data by using the encoding information that the broker obtains for an individual message instance, for example from the transport headers in an input message. Similarly, these settings ensure that bit stream data is encoded according to the values that are defined in the broker properties, when the data is processed by the DFDL serializer.
Notices | Trademarks | Downloads | Library | Support | Feedback

Copyright IBM Corporation 1999, 2016Copyright IBM Corporation 1999, 2016.

        
        Last updated:
        
        Last updated: 2016-05-23 14:48:34


Concept topicConcept topic | Version 8.0.0.7 | df20091_