Towards automatic composition of web services