Author: nadiramra
Date: Wed Jun 20 04:00:14 2012
New Revision: 1351929
URL: http://svn.apache.org/viewvc?rev=1351929&view=rev
Log:
Minor, revert "fix" for the need to obtain reference type for arrays...needs
more investigation
Modified:
axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
Modified:
axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
URL:
http://svn.apache.org/viewvc/axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java?rev=1351929&r1=1351928&r2=1351929&view=diff
==============================================================================
--- axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
(original)
+++ axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
Wed Jun 20 04:00:14 2012
@@ -628,12 +628,16 @@ public class WSDLInfo
// An array...
// Get referenced type
- TypeEntry typeEntryOfRefType = getActualRefType(type);
- if (null == typeEntryOfRefType || typeEntryOfRefType.getQName() ==
null)
+ if (null == type.getRefType() || null ==
type.getRefType().getQName())
throw new WrapperFault("Array type found without a Ref type: "
+ type.getQName());
+
+ // TODO not sure what we should do if array references an element
following commented code is not correct
+ // if (type.getRefType().getRefType() != null)
+ // qn = type.getRefType().getRefType().getQName();
+ QName qn = type.getRefType().getQName();
+
// If referenced type is primitive, we are done...
- QName qn = typeEntryOfRefType.getQName();
if (CUtils.isPrimitiveType(qn))
return null;