Samples > Sample stores > Consumer direct sample store > IBM Gift Center for the Consumer direct sample store
IBM Gift Center message mapping
The IBM Gift Center for WebSphere Commerce uses messages to communicate with an external back-end system, where you may store gift registry information or related information. If you plan to customize a message mapper to communicate between the two systems, be familiar with the default mapping available with the IBM Gift Center.
The IBM Gift Center supports both inbound and outbound messages.
- IBM Gift Center inbound messages
Inbound messages are messages from an external system entering the IBM Gift Center system. IBM Gift Center can accept a valid inbound message, turn that message into a corresponding service request, and perform the service accordingly. For example, an inbound message can ask for the creation of a gift registry by giving a service name, and required data. In the example below, the requested service is "updateGiftRegistry". The requested service is to be performed in store 10001, and the action, if not specified, is "add":
- IBM Gift Center outbound messages
Outbound messages are messages sent from IBM Gift Center to an external system. The IBM Gift Center approach to outbound messaging is to use the SendGiftRegistryMessageCmd command, which can be called by the UpdateGiftRegistryCmd or CancelGiftRegistryCmd commands.To customize outbound messages, override the sendAllMessages() method.
Related concepts
IBM Gift Center for the Consumer direct sample store
Related tasks
Enable IBM Gift Center inbound messages
Related reference
IBM Gift Center inbound messages
IBM Gift Center outbound messages