This topic provides an example of a Web services mapper definition that is used by a Web services access operation to invoke Web services.
The Web services function that is invoked requests a ''String' parameter and one ''int' parameter. The execution result is a com.ibm.btt.wsc.op.test.service.UserAccount JavaBean class. Example of a Web services mapper definition.is an example of a Web services mapper definition, and it contains three Web services mapper definitions for data conversion: two input mappers and one output mapper:
The <wsMapperConverter> tag is connected with the com.ibm.btt.base.ws.WSMapperConverter implementation class, which is defined in the formatter section of the btt.xml:
The <map> tag is the externalizer definition for the com.ibm.btt.base.DataMapperFormat class, which is used to indicate the source and destination in the data mapping. You can configure the attributes of the <map> tag to define data conversion.
Note The structure of the source data must be the same as the structure of the destination data. For more information and examples on using the Web services mapper to map data that have the same structure, see Defining the Web services mapper.
Attributes
from
The attribute is mandatory. The value of this attribute indicates the source data in the mapping process.
to
The attribute is mandatory. The value of this attribute indicates the destination data in the mapping process.
byReference
This is an optional attribute. It indicates the Web services mapper runtime whether to make a copy or just reference the source data to construct the target data. The byreference attribute must have one of the following attributes:
▪ True: the Web services mapper runtime references data.
▪ False: the Web services mapper runtime makes a data copy.