reorganize web service function into 1 class

reorganize web service function into 1 class