[ http://issues.apache.org/jira/browse/AXIS-530?page=history ] Davanum Srinivas reopened AXIS-530: -----------------------------------
Reopening as per Dennis' comments. > elements without minOccurs="0" produce isnill="true" on the wire > ---------------------------------------------------------------- > > Key: AXIS-530 > URL: http://issues.apache.org/jira/browse/AXIS-530 > Project: Axis > Type: Bug > Components: Serialization/Deserialization > Versions: 1.0 > Environment: Operating System: Other > Platform: Other > Reporter: Andre Kramer > Assignee: Glen Daniels > Fix For: 1.2 > Attachments: patch.tar.gz > > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - If you want more information on JIRA, or have a bug to report see: http://www.atlassian.com/software/jira
