Package sample.rmi.server

Examples of sample.rmi.server.Service2Interface


    public void testMethod1(){


        try {
            Service2Interface proxy =
                    (Service2Interface) RMIClientProxy.createProxy(
                            Service2Interface.class,
                            configurator,
                            "http://localhost:8080/axis2/services/Service2");
            TestRestrictionBean testRestrictionBean = new TestRestrictionBean("testvalue");
            TestRestrictionBean result = proxy.method1(testRestrictionBean);
            System.out.println("Result ==> " + result.getParam1());
        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        }
    }
View Full Code Here


    public void testMethod2(){


        try {
            Service2Interface proxy =
                    (Service2Interface) RMIClientProxy.createProxy(
                            Service2Interface.class,
                            configurator,
                            "http://localhost:8080/axis2/services/Service2");
            TestComplexBean testComplexBean = new TestComplexBean();
            testComplexBean.addTestBean(new TestBean(5,"teststring1"));
            testComplexBean.addTestBean(new TestBean(6,"teststring2"));
            testComplexBean.addTestBean(new TestBean(7,"teststring3"));
            TestComplexBean result = proxy.method2(testComplexBean);
            TestBean testBean;
            for (Iterator iter = result.getTestBeans().iterator();iter.hasNext();){
                testBean = (TestBean) iter.next();
                System.out.println("Parm1 ==> " + testBean.getParam1());
                System.out.println("Parm2 ==> " + testBean.getParam2());
View Full Code Here

    }

    public void testMethod11() {

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

    }

    public void testMethod12() {

        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());
View Full Code Here

    }

    public void testMethod2() {

        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.Service2Interface

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.