I have a WSDL that defines a method that has 1 argument: an array of a custom 
class MyClass: void f(MyClass[] arr){}

I convert this WSDL to Java using Axis2 wsdl2java tool. The conversion creates 
a method that instead of MyClass[] receives a generated class ArrayOfMyClass: 
void f(ArrayOfMyClass arg)

ArrayOfMyClass is an interface that extends 
org.xmlsoap.schemas.soap.encoding.Array.

This org.xmlsoap.schemas.soap.encoding.Array doesn't have any method through 
which I can add instances of MyClass to ArrayOfMyClass. It doesn't have 
anything like add(Object).

How can I populate org.xmlsoap.schemas.soap.encoding.Array with instances of 
MyClass ?

Thanks in advance!

--bentzy

 

Reply via email to