I have got a web service programmed in c# / asp.net.
[WebService(Namespace = \"http://example.com/\")] [WebServiceBinding(ConformsTo = WsiProfiles.BasicProf
You can protect all your methods by placing the code in your WebService constructor. This prevents your WebMethod from even being called:
public Service(): base() { if (!GetUser().LoggedIn) { Context.Response.StatusCode = (int)System.Net.HttpStatusCode.Forbidden; Context.Response.End(); } }