Exemplo n.º 1
0
        static void Main(string[] args)
        {
            String filename = "client.exe.config";

            RemotingConfiguration.Configure(filename);

            SomeSAO obj = new SomeSAO();

            String res = obj.doSomething();

            Console.WriteLine("Got result: {0}", res);
            Console.ReadLine();
        }
Exemplo n.º 2
0
        static void Main(string[] args)
        {
            String filename = "client.exe.config";

            RemotingConfiguration.Configure(filename);

            SomeSAO obj    = new SomeSAO();
            String  result = obj.getSAOVersion();

            Console.WriteLine("Result: {0}", result);

            Console.WriteLine("Finished ... press <return> to exit");
            Console.ReadLine();
        }
Exemplo n.º 3
0
        static void Main(string[] args)
        {
            ChannelServices.RegisterChannel(new HttpChannel());

            CustomProxy prx = new CustomProxy(typeof(Service.SomeSAO),
                                              "http://localhost:1234/SomeSAO.soap");

            SomeSAO obj = (SomeSAO)prx.GetTransparentProxy();

            String res = obj.doSomething();

            Console.WriteLine("Got result: {0}", res);
            Console.ReadLine();
        }
Exemplo n.º 4
0
        static void Main(string[] args)
        {
            String filename = "client.exe.config";

            RemotingConfiguration.Configure(filename);

            SomeSAO obj = new SomeSAO();

            try {
                String res = obj.doSomething();
                Console.WriteLine("Got result: {0}", res);
            } catch (Exception e) {
                Console.WriteLine("EX: {0}\n\n{1}", e.Message, e.ToString());
            }

            Console.WriteLine("Finished ...");
            Console.ReadLine();
        }