Я не проверял это, но я думаю, что общая идея была бы такой:
NotifyService.asmx
<%@ WebService language = "C#" class = "NotifyService" %>
using System;
using System.Web.Services;
using System.Xml.Serialization;
[WebService(Namespace = "http://localhost/")]
public class NotifyService: WebService{
[WebMethod]
[ScriptMethod(UseHttpGet = true)]
public String Notify(string name)
{
return "Hello " + name;
}
}
Тогда вы можете позвонить, запросив GET http://localhost/NotifyService.asmx/Notify?name=Dude