You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Andre Bickford <an...@ftn.fedex.com> on 2008/07/15 07:52:08 UTC

Axis wsdl2java adding array helper methods

Hello,

Recently we discovered that, after generating some Java artifacts using wsdl2java, Axis would add a helper or convenience method for setting elements in an array.

For example, if the class whose artifacts were being generated has a String[] instance variable called 'address', Axis would create a method similar to the following signature:

public void setAddress(int i, String s);

The problem is that when we distribute the Java artifacts to customers they always seem to try to use these helper methods, which then throw null pointers because the String[] address variable is not initialized in the constructor.

Yes, I could instruct them not to use it (and we do), but it's happened enough times that I'd like to inquire if there's a way to turn off this functionality.  Axis is awesome and we love it, but this particular behavior is a bit of a nuisance.

Thanks in advance,
Andre

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org