Creating Custom Message Header Fields

To create a custom message header field, you can create a map with custom user properties fields. The user properties are carried in the message separate from the payload.

You can create a user property map for a message through a single function call. Each field in a user properties map is a SDT field. Once the map is created, data for fields in the map can be added with the Solace C API container functions. For a comprehensive list of the available container functions, see the Solace Messaging APIs documentation for the Solace C API.

To create a user properties map, call solClient_msg_createUserPropertyMap(...) and pass in an existing SDT.