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
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: [email protected]
For additional commands, e-mail: [email protected]