axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Eapen" <>
Subject Wrap Array and Null Pointer Exceptions :
Date Thu, 01 Mar 2007 23:05:37 GMT
I am using Axis 1.3 and would like to know if the issue related to
"wrapArrays" has been resolved in later versions of Axis.

Currently we see null pointer exceptions as a result of this ambiguity. In
the following example we are not using  the "undocumented option of
"wraparrays" and probably using that will help. That may mean lot of code
changes related to wrapping of arrays.

**** HAND CODED Version **********

<element name="addCredentials">
		  <element name="credentials" type="creds:ArrayOfCredentialInfo" />
************  Auto-Generated by AXIS ( /services/MyService?wsdl ) *********

<element name="addCredentials">
     <element maxOccurs="unbounded" name="credentials"

I found following information on the web.

>>I note that Axis 1.3 wsdl2java supports an undocumented option:
>>--wrapArrays.  I can see that it causes MyClass [] to be wrapped as

Further explaination can be found at the following url.

Any help will be greatly appreciated. If this is fixed in Axis 1.4 or Axis
2.1, then it would make sense to upgrade rather than use "wrapparrays"


View raw message