[ http://issues.apache.org/jira/browse/AXIS2-1045?page=all ]

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

    Attachment: ADBBeanTemplate.xsl.optional.patch

Hi,

my last consolidated patch was incomplete. It didn´t cover that 
XMLBeanTemplate.xsl consists of two templates for the factory class and for 
helper class. So the patch has to fix two identical pieces of code. The 
attached patch should solve this. It patches also a missing NullPointer check 
reported in AXIS2-1041 in the template for the helper class.

So please reopen this bug and apply the new patch.

thanks,
- 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
>            Priority: Blocker
>         Attachments: ADBBeanTemplate.xsl.optional.patch, axis2-patch.patch, 
> patch-optional-attr.zip, SchemaCompiler.java.optional.patch
>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to