Inbound message template definition files

WebSphere Commerce provides an XML message mapper which can be used to map inbound XML messages to WebSphere Commerce command interfaces based on the inbound XML message template definition files.

Whenever an inbound XML message is passed to the message mapper, it checks to see if the message is defined in the template definition files. If so, it retrieves the WebSphere Commerce controller command name and parameter names for the message, and parses the incoming message to get the values for the parameters. Once the message has been parsed, the message mapper returns a CommandProperty object containing the command name and the parameter name-value pairs for the command.

There are two template definition files provided by WebSphere Commerce.

Both files are in XML format, based on the ec_template.dtd DTD file. The ec_template.dtd file contains the blueprint for all inbound messages outlined in the sys_template.xml file, and should be used to guide you in the creation of any new messages in the user_template.xml file.

The message template definition files are used to define the XML parsing information for the inbound XML message. Each message defined in these files has the following two base elements:

By default, all of the template definition, template definition DTD, and DTD files for inbound XML messages are stored in the XML configuration directory in the messaging subdirectory.

Important: For security reasons, ensure that only authorized persons can access and modify the sys_template.xml and the user_template.xml message template definition files. If unauthorized persons have access to write to this file, they would have the ability to write new inbound messages that could invoke any WebSphere Commerce command as a Site Administrator.


Related concepts
Message mappers


Related tasks
Creating an inbound XML message