axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Willoughby, Kevin" <Kevin.Willoug...@arrisi.com>
Subject RE: Optional fields
Date Mon, 17 Aug 2009 15:39:21 GMT
I don't get a null value in the server. In fact, I get a valid integer: Integer.MIN_VALUE.


From: Sudhanshu Umalkar Umalkar [mailto:sumalkar@cisco.com]
Sent: Monday, August 17, 2009 11:41 AM
To: axis-user@ws.apache.org
Subject: RE: Optional fields

One way is to try to retrieve the value of that field and check for null at server side.

________________________________
From: Willoughby, Kevin [mailto:Kevin.Willoughby@arrisi.com]
Sent: Monday, August 17, 2009 7:43 PM
To: axis-user@ws.apache.org
Subject: Optional fields
I'm working with a WSDL that has optional fields, e.g., '<xs:element name="alarmTally"
type="xs:int" minOccurs="0"/>'.

When the client does not supply a field, how is the server supposed to know if the field was
omitted?

Mime
View raw message