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 Ce...@linedata.com on 2007/09/17 11:12:24 UTC

int cannot be null in Java

hi,
i have a web service that has a method that takes an int argument.
That argument is not compulsory but an int cannot be null in Java (but an 
Integer can be null).


public MyObject methodName(String a, int b) {
        //blabla
}


how do you deal with this ? 
thanks for helping.

I am using Axis 1.2