calling rest service from html