Application of web services to heterogeneous networks of small devices