예제 #1
0
        public void Init()
        {
            _log = LogManager.GetLogger(typeof(RetrieveSyncOpTests));

            _proxy           = new model.Proxy();
            _proxy.ProxyType = model.Proxy.EProxyType.Disabled;
        }
예제 #2
0
파일: SyncOp.cs 프로젝트: shachaoshu/WsdlUI
 protected SyncOp(string name, int timeout)
 {
     Name         = name;
     TimeoutInSec = timeout;
     Log          = LogManager.GetLogger(typeof(SyncOp));
     Proxy        = new model.Proxy();
 }
예제 #3
0
        public void Init()
        {
            _log = LogManager.GetLogger(typeof(CallSyncOpTests));

            _proxy = new model.Proxy();
            _proxy.ProxyType = model.Proxy.EProxyType.Disabled;
        }
예제 #4
0
파일: SyncOp.cs 프로젝트: umabiel/WsdlUI
 protected SyncOp(string name, int timeout)
 {
     Name = name;
     TimeoutInSec = timeout;
     Log = LogManager.GetLogger(typeof(SyncOp));
     Proxy = new model.Proxy();
 }
예제 #5
0
        public void TestGetWebProxy()
        {
            //test 1 check that we can successfully get the system proxy, on linux system wide proxy is not used
            model.Proxy proxy = new model.Proxy();
            proxy.ProxyType = model.Proxy.EProxyType.System;
            WebProxy webProxy = Drexyia.Utils.ProxyWrapper.GetWebProxy(proxy);

            Assert.IsNotNull(webProxy);
        }
예제 #6
0
        public void TestGetWebProxy()
        {
            //test 1 check that we can successfully get the system proxy, on linux system wide proxy is not used
            model.Proxy proxy = new model.Proxy();
            proxy.ProxyType = model.Proxy.EProxyType.System;
            WebProxy webProxy = Drexyia.Utils.ProxyWrapper.GetWebProxy(proxy);

            Assert.IsNotNull(webProxy);
        }
예제 #7
0
파일: AsyncOp.cs 프로젝트: umabiel/WsdlUI
        protected AsyncOp(string name, int timeout)
        {
            Name = name;
            TimeoutInSec = timeout;

            _timeoutObject = new TimeoutObject(Name, timeout);
            _timeoutObject.OnTimeout += _timeoutObject_OnTimeout;

            Log = LogManager.GetLogger(typeof(AsyncOp));
            Proxy = new model.Proxy();
        }
예제 #8
0
        protected AsyncOp(string name, int timeout)
        {
            Name         = name;
            TimeoutInSec = timeout;

            _timeoutObject            = new TimeoutObject(Name, timeout);
            _timeoutObject.OnTimeout += _timeoutObject_OnTimeout;

            Log   = LogManager.GetLogger(typeof(AsyncOp));
            Proxy = new model.Proxy();
        }
예제 #9
0
        public void TestHelloWorldProxy()
        {
            var webMethod = new model.WebSvcMethod("HelloWorld", TestDataReader.Instance.ServiceUriProxy);

            webMethod.Request = new model.WebSvcMessageRequest();
            webMethod.Request.Headers[model.WebSvcMessageRequest.HEADER_NAME_SOAP_ACTION] = "http://tempuri.org/ICallSyncOpService/HelloWorld";
            webMethod.Request.Body = TestDataReader.Instance.RequestResponseMessages["HelloWorldRequest"];

            var proxy = new model.Proxy();

            proxy.ProxyType = model.Proxy.EProxyType.Enabled;
            proxy.Host      = @"127.0.0.1";
            proxy.Port      = 8888;

            var call = new process.WebSvcSync.Operations.CallSyncOp(webMethod, RETRIEVE_TIMEOUT, proxy, _log);

            webMethod.Response = call.Work();

            Assert.AreEqual(webMethod.Response.BodyUnformatted, TestDataReader.Instance.RequestResponseMessages["HelloWorldResponse"]);
            Assert.AreEqual(webMethod.Response.Status, "200 OK");
        }
예제 #10
0
 public void Init()
 {
     _proxy = new model.Proxy();
     _proxy.ProxyType = model.Proxy.EProxyType.Disabled;
 }
예제 #11
0
 public void Init()
 {
     _proxy           = new model.Proxy();
     _proxy.ProxyType = model.Proxy.EProxyType.Disabled;
 }
예제 #12
0
        public void TestHelloWorldProxy()
        {
            var webMethod = new model.WebSvcMethod("HelloWorld", TestDataReader.Instance.ServiceUriProxy);
            webMethod.Request = new model.WebSvcMessageRequest();
            webMethod.Request.Headers[model.WebSvcMessageRequest.HEADER_NAME_SOAP_ACTION] = "http://tempuri.org/ICallSyncOpService/HelloWorld";
            webMethod.Request.Body = TestDataReader.Instance.RequestResponseMessages["HelloWorldRequest"];

            var proxy = new model.Proxy();
            proxy.ProxyType = model.Proxy.EProxyType.Enabled;
            proxy.Host = @"127.0.0.1";
            proxy.Port = 8888;

            var call = new process.WebSvcSync.Operations.CallSyncOp(webMethod, RETRIEVE_TIMEOUT, proxy, _log);
            webMethod.Response = call.Work();

            Assert.AreEqual(webMethod.Response.BodyUnformatted, TestDataReader.Instance.RequestResponseMessages["HelloWorldResponse"]);
            Assert.AreEqual(webMethod.Response.Status, "200 OK");
        }
예제 #13
0
 public CallSyncOp(model.WebSvcMethod webSvcMethod, int timeoutPeriod, model.Proxy proxy, ILog log)
     : base(webSvcMethod.Name, timeoutPeriod, proxy, log)
 {
     _webSvcMethod = webSvcMethod;
 }