You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Eugene Shershnev (JIRA)" <ax...@ws.apache.org> on 2005/03/18 21:16:26 UTC
[jira] Updated: (AXIS-530) elements without minOccurs="0" produce isnill="true" on the wire
[ http://issues.apache.org/jira/browse/AXIS-530?page=history ]
Eugene Shershnev updated AXIS-530:
----------------------------------
Attachment: Axis-530-test.zip
A test to demonstrate the problem in 1.2 RC3
Includes server source/compiled classes, wsdl, wsdd.
> 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: Axis-530-test.zip, 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