static void Main(string[] args) { localhost.Service1 srv = new localhost.Service1(); string result = srv.HelloWorld("tang dashi"); Console.WriteLine(result); }
public ActionResult Index() { using (var service = new localhost.Service1()) { //System.Web.Services.Protocols.SoapHttpClientProtocol ViewBag.Message = service.HelloWorld(); ViewBag.Test = service.Test("input1", "input2"); } return(View()); }