Importing from C

This describes how to create a new message definition from a C header file using the New Message Definition File wizard in the workbench.

Before you start:

To complete this task, you must have completed the following tasks:

Before you begin this task, you should be aware of the points listed below:

If you previously used the WebSphere MQ Integrator Version 2.1 C importer to create a message model, you may find that the WebSphere Message Broker Version 6.0 importer does not produce exactly the same results. In particular, the Version 2.1 C importer did not support as many C constructs as WebSphere Message Broker Version 6.0, and the naming convention for Version 2.1 compound types is not the same as the naming convention for WebSphere Message Broker Version 6.0 complex types and groups. In a very few cases, the naming convention for Version 2.1 elements is not the same as the naming convention for WebSphere Message Broker Version 6.0 elements.

The following steps cover both creating a completely new message definition file and overwriting the contents of an existing file.

To create a message definition file from a C header file:

  1. Switch to the Broker Application Development perspective.
  2. Open the New Message Definition File wizard by clicking File > New > Message Definition File from the workbench menu. Alternatively, you can open the wizard by right-clicking a C header file previously imported into the workbench and clicking New > Message Definition File on the menu.
  3. In the displayed list of options, click C header file then click Next.
  4. Step through the remainder of the wizard filling in the details as required.

When you have completed importing the C header file using the wizard:

Related concepts
Ways to create message definitions
Importing from other model representations to create message definitions
Related tasks
Working with a message set project
Importing from the command line
Adding a Custom Wire Format (CWF)
Related reference
Import formats
Importing from C: supported features
New message definition file wizard: C header file