Client for restful service