[
https://issues.apache.org/jira/browse/AXIS-2499?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andreas Veithen updated AXIS-2499:
----------------------------------
Labels: array-items (was: )
> Incorrect "returnItemQName" in deploy.wsdd when the array of elements and the
> response in different namespace
> -------------------------------------------------------------------------------------------------------------
>
> Key: AXIS-2499
> URL: https://issues.apache.org/jira/browse/AXIS-2499
> Project: Axis
> Issue Type: Bug
> Components: WSDL processing
> Affects Versions: 1.3
> Environment: Java 1.4 and 1.5 in Windows XP, Solaris and Lunix
> Reporter: Yu-Bing Chen
> Priority: Critical
> Labels: array-items
>
> The problem is in the method of:
> org.apache.axis.wsdl.toJava.Utils.getItemQName(TypeEntry)
> It should returned the component-type of the returned item if it is an array
> type.
> /* here is the new code (modified from Axis 1.3) that will solve this issue */
> public static QName getItemQName(TypeEntry te) {
> if (te instanceof DefinedElement) {
> te = te.getRefType();
> }
> String dim = te.getDimensions();
> // get the component type for array type
> if (dim != null && dim.equals("[]"))
> return te.getComponentType();
> else
> return te.getItemQName();
> }
> /* here is the old Axis 1.3 code that have this issue */
> public static QName getItemQName(TypeEntry te) {
> if (te instanceof DefinedElement) {
> te = te.getRefType();
> }
> return te.getItemQName();
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
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]