axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Christ (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-1045) Support for attribute use flag
Date Fri, 18 Aug 2006 10:38:16 GMT
     [ http://issues.apache.org/jira/browse/AXIS2-1045?page=all ]

Fabian Christ updated AXIS2-1045:
---------------------------------

    Attachment: patch-optional-attr.zip

Hi,

this patch handles optional attributes. When you have an attribute with use="optional" this
patch generates code which checks if the attribute is null before it is serialized. Not optional
attributes are not reflected by this since they must not be null.

The patch only affects the code generation for Java.

- Fabian

> Support for attribute use flag
> ------------------------------
>
>                 Key: AXIS2-1045
>                 URL: http://issues.apache.org/jira/browse/AXIS2-1045
>             Project: Apache Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: wsdl
>            Reporter: Fabian Christ
>         Attachments: patch-optional-attr.zip
>
>
> Hi,
> if you have an attribute like
> <xsd:attribute name="TestOptional" type="xsd:string" use="optional"/>
> the "use" flag is not handled and thus the attribute becomes never optional in the generated
code. If you donĀ“t set this attribute you get a NullPointerException when the attribute is
serialized - the attribute is null. This is critical to me since I have to use many optional
attributes.
> - Fabian

-- 
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
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message