Composition of Heterogeneous Web Services for Converting Legacy Codes to SOA based Applications