Each file placed on a message queue may consist of multiple messages, even of different types. The message structure is as follows:
<?xml version="1.0" encoding="utf-8"?>
<messages>
<exportCustomer>
MSG 1
</exportCustomer>
<updateProduct>
MSG 2
</updateProduct>
<updateProduct>
MSG 3
</updateProduct>
</messages>
The outer tag is <messages> and within this outer tag there may be one or more message sections containing any type of supported message. The structure of each message is as follows:
<?xml version="1.0" encoding="utf-8"?>
<messages>
<exportCustomer>
<storeId>store1</storeId>
<time>16:50:07 26022015</time>
<version>1.0</version>
<body>
<firstName>firstName</firstName>
<lastName>lastName</lastName>
etc.
</body>
</exportCustomer>
</messages>
Each message has an outer tag containing the message name that defines what the message is intended for. In the example above the message is <exportCustomer> so the <body> of the message contains data required to register a customer. The <body> section of a message always contains the data associated with the message.