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 interface doesn't have any method through which I can add instances of 
MyClass to ArrayOfMyClass.
 
How should I use the array wrapper class?
 
Thanks in advance!
--bentzy
 

ps.I even couldn't find while googling any wsdl containing "soap-enc:Array", 
not even at axis2 examples :( .

Reply via email to