私のコードは以下の通りです:
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;
}
}
私の質問は、実行時に getEvent Web メソッドが非表示になるのはなぜですか? MSDN によると、http: //msdn.microsoft.com/en-us/library/3003scdt(v=vs.71).aspx で動作するはずです。