Fix compile issue in webservice