Package sample.rmi.server

Examples of sample.rmi.server.Service1Interface


    public void testMethod1() {


        try {
            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


    public void testMethod2() {


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

            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);

            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

        this.configurator.addPackageToNamespaceMaping("sample.rmi.server.exception", "http://sample/service/exception");
    }

    public void testMethod1() {
        try {
            Service1Interface proxy =
                    (Service1Interface) RMIClientProxy.createProxy(Service1Interface.class,
                            this.configurator,
                            "http://localhost:8080/axis2/services/Service1");
            String result = proxy.method1("Hellow"," World");
            System.out.println("Result ==> " + result);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
View Full Code Here

    }

    public void testMethod2() {

        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

        }
    }

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

TOP

Related Classes of sample.rmi.server.Service1Interface

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.