Update the web service function.