Example #1
0
 public static void TestWSHTTP(string BaseAddress)
 {
     try
     {
         EndpointAddress address = new EndpointAddress(BaseAddress + "/WSHTTP");
         WSHttpBinding binding = new WSHttpBinding();
         MyService.BServiceClient Proxy = new MyService.BServiceClient(binding, address);
         Console.WriteLine("WSHTTP CONNECTION");
         Console.WriteLine(Proxy.LogIn());
     }
     catch { }
 }
Example #2
0
 public static void TestAsynchronous(string BaseAddress)
 {
     try
     {
         EndpointAddress address = new EndpointAddress(BaseAddress + "/WSHTTP");
         NetTcpBinding binding = new NetTcpBinding();
         MyService.BServiceClient Proxy = new MyService.BServiceClient(binding, address);
         Proxy.LogInCompleted += new EventHandler<MyService.LogInCompletedEventArgs>(CallBackFunction);
         Proxy.LogInAsync();
     }
     catch { }
 }
Example #3
0
        public static void TestTCPNET()
        {
            try
            {
                EndpointAddress address = new EndpointAddress("net.tcp://localhost:9000/TCPNET");
                NetTcpBinding binding = new NetTcpBinding();
                MyService.BServiceClient Proxy = new MyService.BServiceClient(binding, address);

                Console.WriteLine("TCPNET CONNECTION");
                Console.WriteLine(Proxy.LogIn());
            }
            catch { }
        }