axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Fabian Christ (JIRA)" <>
Subject [jira] Created: (AXIS2-1041) WSDL2Java ADB codegen: Handling of anyAttributes
Date Thu, 17 Aug 2006 11:46:13 GMT
WSDL2Java ADB codegen: Handling of anyAttributes

                 Key: AXIS2-1041
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
            Reporter: Fabian Christ
         Attachments: ADBBeanTemplate.xsl.patch


the existing code generation template ADBBeanTemplate.xsl does not support the correct handling
of anyAttributes. The existing solution tries to convert an attribute with name "extraAttributes"
to a type. But the attribute "extraAttribute" is only a placeholder for any attributes. So
I modfied the template for the parse method.

This patch handles the normal attributes and the any or extra attributes. AnyAttributes are
stored in an array of type OMAttribute in the variable localExtraAttributes of the generated

Secondly this patch includes a check to prevent NullPointerException when writing anyAttributes.
If you get a request without any extra attributes the variable localExtraAttributes is null.
This should be tested before trying to write any extra attributes.

- Fabian

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message