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());
}
} catch (AxisFault axisFault) {