Adb generates non compilable code
---------------------------------

                 Key: AXIS2-3931
                 URL: https://issues.apache.org/jira/browse/AXIS2-3931
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: adb
    Affects Versions: 1.4
            Reporter: Sandro Monteiro de Souza


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.
-
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]

Reply via email to