Package sample.rmi.server.dto

Examples of sample.rmi.server.dto.TestClass1


            Service1Interface proxy =
                    (Service1Interface) RMIClientProxy.createProxy(Service1Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service1");

            TestClass1 testClass1 =  new TestClass1();
            testClass1.setParam1(5);
            testClass1.setParam2("hellow world");
            testClass1.setParam3(new Integer(6));

            TestClass1 result = proxy.method1(testClass1);
            System.out.println("Param1 ==> " + result.getParam1());
            System.out.println("Param2 ==> " + result.getParam2());
            System.out.println("Param3 ==> " + result.getParam3());
        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        }

View Full Code Here


            TestClass2 testClass2 = new TestClass2();
            testClass2.setParam1(5);
            testClass2.setParam2("test String");

            TestClass1[] testClass1s = new TestClass1[2];
            testClass1s[0] new TestClass1();
            testClass1s[0].setParam1(5);
            testClass1s[0].setParam2("hellow world");
            testClass1s[0].setParam3(new Integer(6));

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

            testClass2.setParam3(testClass1s);
View Full Code Here

        try {
            Service2Interface proxy =
                    (Service2Interface) RMIClientProxy.createProxy(Service2Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service2");
            TestClass1 testClass1 = new TestClass1();
            testClass1.setParam1("test param1");
            testClass1.setParma2("test param2");
            TestClass1 result = proxy.method2(testClass1);
            System.out.println("Result param 1 ==> " + result.getParam1());
            System.out.println("Result param 2 ==> " + result.getParma2());
        } catch (Exception e) {
            e.printStackTrace()//To change body of catch statement use File | Settings | File Templates.
        }
    }
View Full Code Here

TOP

Related Classes of sample.rmi.server.dto.TestClass1

Copyright © 2018 www.massapicom. 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.