[ https://issues.apache.org/jira/browse/AXIS2-4312?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12700039#action_12700039 ]
alex wu commented on AXIS2-4312: -------------------------------- also need to change line 729: typeTable.getSimpleSchemaTypeName(propertyName), to typeTable.getComplexSchemaType(propertyName), > java2wsdl fails when using the GenerateWrappedArrayTypes pramater > ----------------------------------------------------------------- > > Key: AXIS2-4312 > URL: https://issues.apache.org/jira/browse/AXIS2-4312 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: kernel > Affects Versions: 1.4.1 > Reporter: alex wu > Priority: Critical > > 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.