The user_template.xml is an XML message template definition file that allows you to add new inbound XML messages to be supported by your system. An outline should be added to this file for each new XML message that you want to support. You can use the sys_template.xml file as a guide on how to use or update this template file.
The outline should indicate the tag template to be used, the element from which the tag mapping should be started, the name of the WebSphere Commerce controller command to be invoked, and the URL parameters that correspond to each XML element. If you are using the new inbound XML message to invoke a new WebSphere Commerce command, see the WebSphere Commerce Programming Guide and Tutorials on how to write and register a new WebSphere Commerce controller command.
All XML files are located in the following directory:
WC_installdir/xml/messaging
/QIBM/Proddata/WebCommerce/xml/messaging
Before you add any of your own messages, ensure the file contains the following lines:
<?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE ECTemplate SYSTEM 'ec_template.dtd' > <ECTemplate> </ECTemplate>
Each message that you define in the template definition file includes two base elements:
- TemplateDocument
- TemplateTag
For an explanation of each of these elements, follow the link below.