Introduction
In the era of Service-Oriented Architecture (SOA), a primary challenge for enterprise software was the "Lego problem": how to automatically integrate independent services into complex, custom applications. While SOA provided modularity, manual integration remained labor-intensive due to poorly defined interfaces and the "black box" nature of standard Web services. This paper presents a framework for the dynamic and automated composition of Web services by leveraging semantic matchmaking and non-functional properties.
The Semantic Composition Framework
The proposed system moves beyond simple keyword matching toward a model that understands the semantic meaning of data and the quality of service. The core of this approach is integrated into the SPICE Automatic Composition Engine (ACE).
The framework relies on several key innovations:
- Semantic Matchmaking: Using OWL-based ontologies, the system compares concepts across five degrees of matching: Exact, PlugIn, Subsume, Intersection, and Disjoint.
- Causal Link Matrix (CLM+): A pre-computed matrix storing semantic similarity scores between service outputs and inputs. The "+" denotes the inclusion of Non-Functional Properties (NFPs) like cost and reliability.
- Backward-Chaining Graph Algorithm: The system fulfills requests by starting at the goal and working backward through the CLM+ to find compatible service chains.
- NFP-Based Pruning and Ranking: During the search, the algorithm aggregates NFPs and prunes branches that exceed user constraints. Remaining compositions are ranked using a heuristic based on match quality.
Application Scenario and Results
The framework was validated using a realistic scenario from the IST SPICE project: a developer creating a service to translate text into English and send it via SMS. The registry consisted of five simulated services with varying capabilities and costs.
The evaluation demonstrated that the algorithm could successfully:
- Identify multiple valid paths for the translation-to-SMS request.
- Correctly aggregate costs across service chains and prune invalid paths (e.g., those exceeding a cost limit of 6 units).
- Rank the results, identifying the chain $S_1 \to S_3$ as the optimal solution due to its low cost and high semantic match quality.
Discussion and Future Work
A major strength of this approach is efficiency through pre-computation; by calculating the CLM+ at design-time, the system enables rapid run-time composition. Furthermore, supporting "PlugIn" and "Subsume" matches allows for graceful degradation in heterogeneous environments.
However, limitations remain. The current framework focuses on functional composition (input-output mapping) and does not yet handle complex process logic like loops or conditional branching. Future work will explore combining this functional approach with process-level modeling to support more sophisticated business logic and decentralized discovery mechanisms for the open web.
Summary updated