a sample for web service.