Package sample.rmi.server

Examples of sample.rmi.server.Service1Interface.method2()


            testClass1s[1].setParam2("hellow world");
            testClass1s[1].setParam3(new Integer(6));

            testClass2.setParam3(testClass1s);

            TestClass2 result = proxy.method2(testClass2);
            System.out.println("Param1 ==> " + result.getParam1());
            System.out.println("Param2 ==> " + result.getParam2());
            System.out.println("Param3[0] param1 ==> " + result.getParam3()[0].getParam1());
            System.out.println("Param3[0] param2 ==> " + result.getParam3()[0].getParam2());
            System.out.println("Param3[0] param3 ==> " + result.getParam3()[0].getParam3());
View Full Code Here


        try {
            Service1Interface proxy =
                    (Service1Interface) RMIClientProxy.createProxy(Service1Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service1");
            Integer result = proxy.method2(new Integer(5),new Integer(15));
            System.out.println("Result ==> " + result);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.