Example message assembly (JSON)

You can create message assemblies by using the Message Assembly Editor in the IBM® App Connect Enterprise Toolkit.

The following example shows a JSON message that was constructed by using the Message Assembly Editor:

Figure 1. JSON message constructed using the Message Assembly Editor
This picture shows an example JSON message that was constructed by using the Message Assembly Editor.
When this message was created in the Message Assembly Editor, the following entries were saved to the .mxml file under the JSON element of the message tree:

      <JSON iib:parser="json">
         <Data>
            <house>
               <NewArray iib:elementType="0x01001000">
                  <Item iib:valueType="CHARACTER">detached</Item>
                  <Item iib:valueType="CHARACTER">bungalow</Item>
                  <Item iib:valueType="CHARACTER">terraced</Item>
               </NewArray>
            </house>
         <vehicle>
               <NewArray iib:elementType="0x01001000">
                  <Item iib:valueType="CHARACTER">car</Item>
                  <Item iib:valueType="CHARACTER">motorbike</Item>
                  <Item iib:valueType="CHARACTER">van</Item>
               </NewArray>
            </vehicle>
         </Data>
      </JSON>

For information about how to create message assemblies by using the Message Assembly Editor, see Creating a message assembly. For information about using message assemblies in unit tests, see Developing integration tests.