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