axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r438321 - /webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Date Wed, 30 Aug 2006 02:24:39 GMT
Author: dims
Date: Tue Aug 29 19:24:38 2006
New Revision: 438321

URL: http://svn.apache.org/viewvc?rev=438321&view=rev
Log:
use OMElement if element does not refer to an existing type"

Modified:
    webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java

Modified: webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java?rev=438321&r1=438320&r2=438321&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
(original)
+++ webservices/axis2/trunk/java/modules/adb-codegen/src/org/apache/axis2/schema/SchemaCompiler.java
Tue Aug 29 19:24:38 2006
@@ -411,9 +411,12 @@
             metainf = (BeanWriterMetaInfoHolder) this.processedAnonymousComplexTypesMap.get(xsElt);
             metainf.setAnonymous(true);
         }else{
-            //this means we did not find any schema type associated with the particular element.
we
-            //should be throwing an exception here
-            throw new SchemaCompilationException(SchemaCompilerMessages.getMessage("schema.elementWithNoType",
xsElt.getQName().toString()));
+            //this means we did not find any schema type associated with the particular element.
+            log.warn(SchemaCompilerMessages.getMessage("schema.elementWithNoType", xsElt.getQName().toString()));
+            metainf.registerMapping(xsElt.getQName(),
+                    null,
+                    DEFAULT_CLASS_NAME,
+                    SchemaConstants.ANY_TYPE);
         }
 
         if (nillableElementList.contains(xsElt.getQName())){



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message