Getting realtime data from restful service