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: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


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

Reply via email to