Don't send primitives, send a Java wrapper, like Integer. Then in your
schema, mark it as nillable.
Better yet, move to Document/Literal-wrapped form of web services.
-jeff
 
  _____  

From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, September 17, 2007 5:12 AM
To: axis-user@ws.apache.org
Subject: 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 
        
        
        

Reply via email to