Envoking a web service method with hyperlink
You can implement hook_user_logout():

function MYMODULE_user_logout($account) {
  // Make your web service call here.
}


That hook will be invoked whenever a user logs out, which includes them clicking on any link to user/logout.