Automatic and Dynamic Composition of Web Services Using Ontologies