public void testStringArrayType() throws Exception {
System.out.println("------------------------------");
System.out.println("Test : " + getName());
RPCLitStringArrayService service = new RPCLitStringArrayService();
Echo portType = service.getEchoPort();
BindingProvider p = (BindingProvider) portType;
p.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:6060/axis2/services/RPCLitStringArrayService.EchoImplPort");
String[] strArray= {"str1", "str2", "str3", "str4 5"};
StringArray array = new StringArray();
array.getItem().addAll(Arrays.asList(strArray));
StringArray result = portType.echoStringArray(array);
assertEquals(array.getItem().size(), result.getItem().size());
for (int i = 0; i < array.getItem().size(); i++) {
assertEquals(array.getItem().get(i), result.getItem().get(i));
}