add services and try to use Resource to send http request