A Query-based System for Automatic Invocation of Web Services