Message composition templates

The WebSphere Commerce outbound messaging system includes JavaServer page (JSP) composition templates for a number of message types. When a message of one of these types is generated within WebSphere Commerce, the message composition service uses the corresponding template to create the outbound message. Once it is created, the outbound message can be sent through whatever transports have been assigned to the message type in the Administration Console. An example of a message type that uses a message composition template is OrderCreateXMLFormat, which uses the OrderCreateXML.jsp template. The JavaServer page templates can be found in the following directory:

AIXiSeriesLinuxSun Solaris Operating EnvironmentWindowsWAS_installdir/installedApps/WC_Enterprise_Appinstance_name.ear/wcstores.war and /WC_userdir/installedApps/node_name/instance_name.ear/wcstores.war
WebSphere Commerce StudioWCDE_installdir/installedApps/WC_Enterprise_Appinstance_name.ear/wcstores.war

The following table shows message types that use composition templates, and the JSP file associated with it. For information on the message string in the Administration Console, see Message types.

Message type Template
OrderCreateXMLFormat OrderCreateXML.jsp
OrderStatusNotify OrderStatusNotify.jsp
PasswordNotify PasswordResetNotification.jsp
OrderAuthorized OrderAuthorized.jsp
OrderReceived OrderReceived.jsp
MerchantOrderNotify MerchantOrderNotification.jsp
OrderCancel OrderCanceledNotification.jsp
OrderRejected OrderRejected.jsp
OrderCancelforMerchant OrderCanceledNotification.jsp
OrderSummaryReportNotification OrderSummaryReportNotification.jsp
StoreUsageReportNotification StoreUsageReportNotification.jsp
StoreCommerceReportNotification StoreCommerceReportNotification.jsp
SiteCommerceReportNotification SiteCommerceReportNotification.jsp
ReleaseShipNotify ReleaseShipNotify.jsp
PriceAndAvailabilityCheck PriceAndAvailabilityCheck.jsp
BatchAvailability BatchAvailability.jsp
ShoppingCartTransfer ShopCartTransfer.jsp
CheckInventoryAvailabilityBE InventoryAvailabilityCheck.jsp
ResellerRegistrationApprovedNotification ResellerRegistrationApprovedNotification.jsp
ResellerRegistrationRejectedNotification ResellerRegistrationRejectedNotification.jsp
CollabEmail CollabEmailContent.jsp
RFQSubmitMessage RFQSubmitMessage.jsp
RFQCloseMessage RFQCloseMessage.jsp
RFQCompleteMessage RFQCompleteMessage.jsp
ResponseNotification ResponseNotification.jsp

You can customize these JSP files.

The following table shows other message types that use composition templates, to use these message types create your own JSP templates with the default name (the default name is registered in the VIEWREG table):

Message type Default template name
Invoice Invoice.jsp
CouponsSavedNotification CouponsSavedNotification.jsp
AdminOrderComment (see note below)
CustomerMessage (see note below)
ErrorMessage (see note below)
OrderRejected OrderRejected.jsp
BroadcastMessage BroadcastMessage.jsp
MerchantOrderNotify MerchantOrderNotification.jsp
OrderCancel OrderCanceledNotification.jsp

Note: The message types that do not  have JSP names imply that further customization is needed, including adding rows into the VIEWREG table.