Examples of TestClass1


Examples of org.apache.axis2.rmi.databind.dto.TestClass1

            Operation operation = this.service.getOperation("method1");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new TestClass1());
            Object[] objects = getInputObject(inputObjects, operation);

            TestClass1 object = (TestClass1) operation.getJavaMethod().invoke(this.serviceObject, objects);
            TestClass1 returnObject = (TestClass1) getReturnObject(object, operation);

            assertNotNull(returnObject);
        } catch (Exception e) {
            fail();
        }
View Full Code Here

Examples of org.apache.axis2.rmi.databind.dto.TestClass1

            Operation operation = this.service.getOperation("method2");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new TestClass1[]{new TestClass1(), new TestClass1()});
            Object[] objects = getInputObject(inputObjects, operation);

            TestClass1[] object = (TestClass1[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            TestClass1[] returnObject = (TestClass1[]) getReturnObject(object, operation);
View Full Code Here

Examples of org.apache.axis2.rmi.databind.dto.TestClass1

            Operation operation = this.service.getOperation("method2");
            // get objects after serialization and deserialization.
            // this returned objects mustbe identical with the original array list elements
            List inputObjects = new ArrayList();
            inputObjects.add(new TestClass1[]{new TestClass1(), null, new TestClass1()});
            Object[] objects = getInputObject(inputObjects, operation);

            TestClass1[] object = (TestClass1[]) operation.getJavaMethod().invoke(this.serviceObject, objects);
            TestClass1[] returnObject = (TestClass1[]) getReturnObject(object, operation);
View Full Code Here

Examples of org.apache.axis2.rmi.databind.dto.TestClass1

    public void testTestClass1() {

        Class testClass = TestClass1.class;
        Parameter parameter = new Parameter(testClass, "Param1");
        TestClass1 testObject = new TestClass1();
        TestClass1 result = (TestClass1) getReturnObject(parameter, testObject);

    }
View Full Code Here

Examples of org.apache.axis2.rmi.databind.dto.TestClass1

        TestClass5 result = null;
        result = (TestClass5) getReturnObject(parameter,testObject);
        assertEquals(result.getParam1(),null);

        testObject.setParam1(new TestClass1());
        result = (TestClass5) getReturnObject(parameter,testObject);
        assertNotNull(result.getParam1());

    }
View Full Code Here

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

Examples of sample.rmi.server.dto.TestClass1

            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

Examples of sample.rmi.server.dto.TestClass1

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