A code sample for web service