Package sample.rmi.server.dto

Examples of sample.rmi.server.dto.ChildClass


                    (Service4Interface) RMIClientProxy.createProxy(Service4Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service4");

            List param1 = new ArrayList();
            param1.add(new ChildClass());
            param1.add(new Integer(2));

            List param2 = new ArrayList();
            param2.add(new ParentClass());
            param2.add(new Float(2.34f));
View Full Code Here


        try {
            Service2Interface proxy =
                    (Service2Interface) RMIClientProxy.createProxy(Service2Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service2");
            ChildClass childClass = new ChildClass();
            childClass.setParam1("test param1");
            childClass.setParam2(10);
            childClass.setParam3("test param3");
            childClass.setParam4(new Integer(12));
            ChildClass result = (ChildClass) proxy.method1(childClass);
            System.out.println("Result param 1 ==> " + result.getParam1());
            System.out.println("Result param 2 ==> " + result.getParam2());
            System.out.println("Result param 3 ==> " + result.getParam3());
            System.out.println("Result param 4 ==> " + result.getParam4());

        } 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.ChildClass

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.