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";
}

No comments:

Post a Comment