About this task
For more details, you could download the sample from
here and refer to the description of
related classes.
Procedure
- During the SDO generation, the names defined in WSDL will
be changed into valid Java names which will be used for the SDO data
by default. In the name mapper interface, there is an input parameter
with the type of WsOperation list which contains all the information,
including the global data reference of selected operations. And there
is another parameter with the type of list which contains all the
simple Global data in the application for facility.
public interface INameMapper {
void map(List <WsOperation> selectedOperations,
List <DataElement> simpleGlobalData,
IProject targetProject);
}
- The implementation class of the mapper interface should
be configured in the extension. And then, Web services tool will prepare
the required parameters and launch it. After execution of the extension
class, the selectedOperations will be updated by project implementation
and will reflect the project level reference logic.
Results
In the provided sample, the extension plug-in will pop
up a dialog for end user to manipulate the data mapping relationship
between SDO and global data dictionary. As the screenshot shown below,
the left column lists the names from SDO. And the right column provides
combo editors for each cell from which the global data could be selected.