restful web service wrapper