c# - Why some Web service created by .net methods invisible? -
my code below:
public class service : system.web.services.webservice { public service () { } public class event_t { public string place; public int day; public event_t() { } } [webmethod] event_t getevent(string sms) { event_t tmp = new event_t(); tmp.place = sms; tmp.day = 1; return tmp; }
}
my question is: why getevent web method invisible when runs it? according msdn, http://msdn.microsoft.com/en-us/library/3003scdt(v=vs.71).aspx should work.
i'm pretty sure getevent method needs public.
[webmethod] public event_t getevent(string sms) { event_t tmp = new event_t(); tmp.place = sms; tmp.day = 1; return tmp; }
Comments
Post a Comment