[
https://issues.apache.org/jira/browse/AXIS2-3931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13168353#comment-13168353
]
Sagara Gunathunga commented on AXIS2-3931:
-------------------------------------------
Tested given WSDL file using 1.7.0 snapshots and can't see any compilation
issue hence mark it as resolved. Please test this again and feel free to reopen
if the issue exists with a WSDL file used.
> Adb generates non compilable code
> ---------------------------------
>
> Key: AXIS2-3931
> URL: https://issues.apache.org/jira/browse/AXIS2-3931
> Project: Axis2
> Issue Type: Bug
> Components: adb
> Affects Versions: 1.4
> Reporter: Sandro Monteiro de Souza
> Assignee: Amila Chinthaka Suriarachchi
> Fix For: 1.7.0
>
> Attachments: Bug.wsdl, SchemaCompiler.java
>
>
> When generate client code for the attached WSDL file, it generates the
> following non compilable code line in a ADBBean:
> object.setAddContractFileOut(
>
> org.apache.axis2.databinding.utils.ConverterUtil.convertToAddContractFileOut_type0(content));
> Conditions:
> This error occurs when all of the following conditions are true:
> . There are several schemas defined in the WSDL (not in external files);
> . There are a multi-level schema imports; (one imported schema imports
> another)
> . There is a element in the second level of imports that references the
> schema self target namespace ( is this case <xsd:element name="filename"
> type="tns:filenameType"/>);
> . There are multiple references of the same type in the main schema;
> Possible causes (all found in SchemaCompiler class):
> . The compile method does not compile internal exports, only the external
> ones;
> . The method getParentSchema and getParentSchemaFromIncludes compiles the
> included schemas without the isPartOfGroup flag setted to true;
> . The method finalizeSchemaCompilation cleans up the generated types and
> further references to these types are messed up in JavaBeanWriter class
> (metainf.getSchemaQNameForQName(name) is null).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.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]