Member component message mapper configuration

The member component uses the message mapper infrastructure to determine which WebSphere Commerce command to call based on the request BOD. The message mapper infrastructure provides a way to flatten the values in the SDO noun into name-value pairs that the WebSphere Commerce command can process.

The message mapper configuration is in the following directory:

Person

Organization

If define our own mapping information, use the following file:


Message flattener

In contrast with the database, nouns do not use abbreviations. For example, in the database, gender is stored as a single character: M (Male), F (Female) or N (Unspecified). In the Person noun, gender is a fixed enumeration type, with the following values: Male, Female, Unspecified. If the Service data object has a long-form, and the WebSphere Commerce command expects a short value, a message flattener class is called to convert between the external and internal values. This flattener is also used to add any missing parameter values required by the command. For example, when calling MemberFacadeClient.updateAddressForOrganization(), the underlying command requires the addressId parameter. If this is not provided as an input to the method, then the message flattener class, ECSAXOrgAddressComponentMessageFlattener, will derive and add addressId parameter to the requestProperties of the command based on the distinguishedName and nickName parameters.


Example

ECSAXUserRegistrationComponentMessageFlattener.java is called during the Process Person request, with action of Register.

The mapping between external and internal values (step 1 in the preceding example), is defined in the workspace_dir/WC/xml/config/com.ibm.commerce.member/wc-component.xml as shown in the following snippet.

Customizations to the default mapping should be made in the following file:

workspace_dir/WC/xml/config/com.ibm.commerce.member-ext\wc-component.xml


Related reference
Member services