axis-c-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nadira...@apache.org
Subject svn commit: r1349115 - /axis/axis1/c/trunk/src/wsdl/org/apache/axis/wsdl/wsdl2ws/info/WSDLInfo.java
Date Tue, 12 Jun 2012 04:32:23 GMT
Author: nadiramra
Date: Tue Jun 12 04:32:23 2012
New Revision: 1349115

URL: http://svn.apache.org/viewvc?rev=1349115&view=rev
Log:
AXISCPP-1082 Issue error message when WSDL includes unsupported artifacts list and union elements

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=1349115&r1=1349114&r2=1349115&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 Tue Jun 12
04:32:23 2012
@@ -735,6 +735,13 @@ public class WSDLInfo
 
         if (type.isSimpleType())
         {
+            // Currently we do not support union or list
+            if (CSchemaUtils.getListNode(type.getNode()) != null 
+                    || CSchemaUtils.getUnionNode(type.getNode()) != null)
+            {
+                throw new WrapperFault("The union or list element is not supported in type:
" + type.getQName()); 
+            }
+            
             //check for extended types
             TypeEntry base = CSchemaUtils.getComplexElementExtensionBase(type.getNode(),
c_symbolTable);
             if (base != null)



Mime
View raw message