示例#1
0
        public void TestSingleHttpAsmxWithHttp10()
        {
            var s = _serviceManager.AllServers[0];

            using (var ws = new Http10TestService())
            {
                var proto = s.UseHttps ? "https" : "http";
                ws.Url = proto + "://127.0.0.1:" + s.Port + "/TestService.asmx";
                //ws.UserAgent = "Java1.4.2_10";

                var result = ws.SimpleMethod();
                Assert.IsTrue(result.Contains("Hello World"));
            }
        }
示例#2
0
        public void TestSingleHttpAsmxWithHttp10()
        {
            var s = _serviceManager.AllServers[0];

            using (var ws = new Http10TestService())
            {
                var proto = s.UseHttps ? "https" : "http";
                ws.Url = proto + "://127.0.0.1:" + s.Port + "/TestService.asmx";
                //ws.UserAgent = "Java1.4.2_10";

                var result = ws.SimpleMethod();
                Assert.IsTrue(result.Contains("Hello World"));
            }
        }