integrate "finish task" button with web service

web service is called using AJAX from javascript function