put the call of web service into controller