Esempio n. 1
0
        static void Main(string[] args)
        {
            localhost.Service1 srv    = new localhost.Service1();
            string             result = srv.HelloWorld("tang dashi");

            Console.WriteLine(result);
        }
Esempio n. 2
0
        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());
        }