Search code examples
javawsdlapache-axis

Dealing with ArrayOfAnyType (Java) with Axis2


I have generated a stub (.java) using Axis2's WSDL2Java application, but I can't deal with the "ArrayOfAnyType" type.

I want to invoke a method that has ArrayOfAnyType as parameter type.

But... how to do that? I have difficultes understanding that class and how to use it.

What I'd rather like to use is a simple Object[]... any explainations on how ArrayOfAnyType works? Thanks!


Solution

  • Unless you are required to use axis, i would urge you to check out jaxws (built into the jdk these days). it is a lot more straightforward to use in many ways compared to axis.