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