Exposing a custom method as a web service