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] 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
                 URL: http://issues.apache.org/jira/browse/AXIS2-1041
             Project: Apache Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: wsdl
            Reporter: Fabian Christ
         Attachments: ADBBeanTemplate.xsl.patch

Hi,

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
class.

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: 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