Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Client.Main(): creating rem. reference");
            SomeRemoteObject obj = new SomeRemoteObject();

            Console.WriteLine("Client.Main(): calling doSomething()");
            obj.doSomething();
            Console.WriteLine("Client.Main(): done ");

            Console.ReadLine();
        }
Example #2
0
        static void Main(string[] args)
        {
            HttpChannel chnl = new HttpChannel();

            ChannelServices.RegisterChannel(chnl);

            Console.WriteLine("Client.Main(): creating rem. reference");
            SomeRemoteObject obj = (SomeRemoteObject)Activator.GetObject(
                typeof(SomeRemoteObject),
                "http://localhost:1234/SomeRemoteObject.soap");

            Console.WriteLine("Client.Main(): calling doSomething()");
            obj.doSomething();

            Console.WriteLine("Client.Main(): done ");
            Console.ReadLine();
        }