axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14902] New: - elements with minOccurs="0" produce isnill="true" on the wire
Date Wed, 27 Nov 2002 16:51:39 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14902>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14902

elements with minOccurs="0" produce isnill="true" on the wire

           Summary: elements with minOccurs="0" produce isnill="true" on the
                    wire
           Product: Axis
           Version: 1.0
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Serialization/Deserialization
        AssignedTo: axis-dev@xml.apache.org
        ReportedBy: Andre.Kramer@computer.org


Elements that are marked optional in wsdl schema. e.g. profile field in:
<complexType name="User">
  <sequence>
    <element name="profile" type="someComplexType" minOccurs="0"/>
  </sequence>
</complexType>
<element name="User" type="types:User"/>

Produces (inside SOAP body element) on the wire:
<User>
   <profile xsi:nil="true"/>
</User>

Since the profile schema element is not marked as nillable="true" (only 
minOccurs="0") it would (at least) save bandwidth to just drop it altogether:
<User>
</User>

[Both formats already work for deserialization.]

thanks,
Andre

Mime
View raw message