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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -