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

Fabian Christ updated AXIS2-1041:
---------------------------------

    Attachment: test-WSDL.zip

This small Web Service was for testing around anyAttributes.

> 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, test-WSDL.zip
>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to