WSIFMessage Mapper external definition

You define the WSIFMessage Mapper in the struts-config.xml file. The definition of a WSIFMessage Mapper has the following attributes:
Table 1. <format> tag attributes
Attribute Description
id The name of the formatter. It must be unique.
className The name of the formatter class.
Table 2. <wsif-map> tag attributes
Attribute Description
dataElement The data element defined in the context.
partKey The part key defined in the WSIF message.
convType The conversion type that the formatter applies to the element. This is an optional attribute.
Note: BTTDefaultConverter is the default converter. You can define your own.
The following is an example of the WSIFMessage Mapper:
<formats>
	<format id="toEchoFormat" className="com.ibm.btt.formatterSamp.toFormat">
		<wsif-map dataElement="userName" partKey="message"/>
	</format>
	<format id="fromEchoFormat" className="com.ibm.btt.formatterSamp.fromFormat">
		<wsif-map dataElement="txCode" partKey="result"/>
		<wsif-map dataElement="txMessage" partKey="result"/>
	</format>
	...
<formats>
Related concepts
Architecture