The most important step for the discovery of UI components is the matching algorithm based on the functional descriptions on both sides. The major goal of the algorithm is to find as much as possible matches between the interfaces based on the functional interfaces of the Web service and the UI components to offer potential candidates for the B2C interaction. Below we describe the detailed procedure, which is shown in Figure 3.