You are viewing a plain text version of this content. The canonical link for it is here.
Posted to kandula-dev@ws.apache.org by "Vy Ho (JIRA)" <ji...@apache.org> on 2010/03/01 02:24:05 UTC

[jira] Updated: (AXIS2-4635) extraClasses are not used for generating WSDL in the Java2WSDLTask

     [ https://issues.apache.org/jira/browse/AXIS2-4635?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vy Ho updated AXIS2-4635:
-------------------------

    Attachment: DefaultSchemaGenerator.diff

Temporary fix for extraClasses attribute of Java2WSDL

> extraClasses are not used for generating WSDL in the Java2WSDLTask
> ------------------------------------------------------------------
>
>                 Key: AXIS2-4635
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4635
>             Project: Axis2
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 1.5.1
>         Environment: OpenSuse 11.2, JDK1.6.0
>            Reporter: Vy Ho
>             Fix For: 1.5.1
>
>         Attachments: DefaultSchemaGenerator.diff
>
>
> This attribute is not used to generate the schema for class type definition other than the org.apache.axis2.jaxbri.JaxbSchemaGenerator
> In this class, line 72 to 76, there are code for doing that (method generateSchemaForParameters):
>         if (extraClasses != null) {
>             for (Object extraClass : extraClasses) {
>                 classes.add(Loader.loadClass(classLoader, (String) extraClass));
>             }
>         }
> To temporary fix this issue, I added the following code into org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.java
>         if (extraClasses != null) {
>             for (Object extraClass : extraClasses) {
>                 Class clazz = classLoader.loadClass((String) extraClass);
>                 generateSchema(clazz);
>             }
>         }
> Please the attached diff.  Since I am not familiar with the code, this may not be the right fix, but it's a start.  I also tested and it appears to work for my case.
> The option is document and literal (not bare).

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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