Showing posts with label Web Services Questions. Show all posts
Showing posts with label Web Services Questions. Show all posts

Wednesday, 4 December 2013

How do you mark a service method as Web Service method?

Answer:
Decorate the method with the WebMethod attribute as shown below:
[System.Web.Services.WebMethod()]
public string GetData(string message)
{
return "My Service";
}