All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.patches.06-LPS-36160.patch Maven / Gradle / Ivy

diff --git a/org/apache/axis/wsdl/fromJava/Types.java b/org/apache/axis/wsdl/fromJava/Types.java
index c9a7b87..4142529 100644
--- a/org/apache/axis/wsdl/fromJava/Types.java
+++ b/org/apache/axis/wsdl/fromJava/Types.java
@@ -1770,6 +1770,8 @@ public class Types {
         return element;
     }
 
+	private HashMap qnameReturnValue = new HashMap();
+
     /**
      * Create a schema type element (either simpleType or complexType) for
      * the particular type/qName combination.  If the type is named, we
@@ -1810,12 +1812,23 @@ public class Types {
         // If we've already got this type (because it's a native type or
         // because we've already written it), just add the type="" attribute
         // (if appropriate) and return.
-        if (!addToTypesList(qName) && !anonymous) {
+
+		// liferay - when added to type list, remember returned value!
+		boolean addedToTypeList = addToTypesList(qName);
+
+        if (!addedToTypeList && !anonymous) {
             if (containingElement != null) {
                 containingElement.setAttribute("type", getQNameString(qName));
             }
 
-            return true;
+			// liferay - get result from the map
+
+			Boolean storedResult = qnameReturnValue.get(getQNameString(qName));
+			if (storedResult == null) {
+				return true;
+			}
+
+            return storedResult.booleanValue();
         }
 
         // look up the serializer in the TypeMappingRegistry
@@ -1830,6 +1843,10 @@ public class Types {
             } else if (isBeanCompatible(type, true)) {
                 factory = new BeanSerializerFactory(type, qName);
             } else {
+				// liferay
+				if (addedToTypeList) {
+					qnameReturnValue.put(getQNameString(qName), Boolean.FALSE);
+				}
                 return false;
             }
         }
@@ -1879,6 +1896,11 @@ public class Types {
             emitter.getQName2ClassMap().put(qName, type);
         }
 
+		// liferay
+		if (addedToTypeList) {
+			qnameReturnValue.put(getQNameString(qName), Boolean.TRUE);
+		}
+
         return true;
     }
 
@@ -1890,3 +1912,4 @@ public class Types {
         return serviceDesc;
     }
 }
+/* @generated */
\ No newline at end of file




© 2015 - 2025 Weber Informatics LLC | Privacy Policy