axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anjana Fernando (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2-4685) Compile error in code generated code (using ADB) in unwrapped mode (-uw), when having complex types which have schema type references to other elements
Date Wed, 21 Apr 2010 07:24:49 GMT
Compile error in code generated code (using ADB) in unwrapped mode (-uw), when having complex
types which have schema type references to other elements
-------------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: AXIS2-4685
                 URL: https://issues.apache.org/jira/browse/AXIS2-4685
             Project: Axis2
          Issue Type: Bug
          Components: codegen
    Affects Versions: nightly
         Environment: Ubuntu 9.10
            Reporter: Anjana Fernando


A compile error [1] is occurring when ADB databinding is used and when unwrapping is switched
on. A sample WSDL file is attached here (BatchRequestSample.wsdl) to re-generated the problem.


The WSDL contains operations which represents batch operations of existing operations, if
we take the non-batch operation's parameters as "x", the batch type operations will have an
array of x .. or x[]. To get this behavior the WSDL contains data types like ones shown below,

...
            <xs:element name="addEmployee_batch_req">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element maxOccurs="unbounded" ref="ax219:addEmployee" />
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
...

When above type of declarations are added, and used with unwrapped mode, with ADB, the codegen
is faulty, but when used in 'wrapped' mode, it is working properly. 

[1] http://pastebin.com/qEarLQtT

Thanks,
Anjana.

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


Mime
View raw message