You are viewing a plain text version of this content. The canonical link for it is here.
Posted to rampart-dev@ws.apache.org by "Tharindu Mathew (JIRA)" <ji...@apache.org> on 2010/04/23 07:22:51 UTC
[jira] Updated: (AXIS2-4312) java2wsdl fails when using the
GenerateWrappedArrayTypes pramater
[ https://issues.apache.org/jira/browse/AXIS2-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Tharindu Mathew updated AXIS2-4312:
-----------------------------------
Attachment: DefaultSchemaGenerator.patch
Proposed changes to lines 891 and line 905. Please verify and resolve.
> java2wsdl fails when using the GenerateWrappedArrayTypes pramater
> -----------------------------------------------------------------
>
> Key: AXIS2-4312
> URL: https://issues.apache.org/jira/browse/AXIS2-4312
> Project: Axis2
> Issue Type: Bug
> Components: kernel
> Affects Versions: 1.4.1
> Reporter: alex wu
> Priority: Critical
> Attachments: DefaultSchemaGenerator.patch
>
>
> http://svn.apache.org/repos/asf/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/description/java2wsdl/DefaultSchemaGenerator.java
> from line 700 ~ line 715
> line 700: } else {
> if (isArrayType) {
> generateSchema(type.getComponentType());
> } else {
> generateSchema(type);
> }
> if (isGenerateWrappedArrayTypes && isArrayType) {
> XmlSchemaElement xmlSchemaElement = new XmlSchemaElement();
> xmlSchemaElement.setName(name + "Wrapper");
> xmlSchemaElement.setNillable(true);
> sequence.getItems().add(xmlSchemaElement);
> line 715: String complexTypeName =
> typeTable.getSimpleSchemaTypeName(propertyName).getLocalPart() + "Wrapper";
> notice line 715 will cause a NPE, in this case complexTypeName should not get from the SimpleTypes in typeType, instead, should come form the complexTypes.
> String complexTypeName =
> typeTable.getComplexSchemaType(propertyName).getLocalPart() + "Wrapper";
--
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