cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1402097 - /cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
Date Thu, 25 Oct 2012 10:52:10 GMT
Author: coheigea
Date: Thu Oct 25 10:52:10 2012
New Revision: 1402097

URL: http://svn.apache.org/viewvc?rev=1402097&view=rev
Log:
Fixing regression

Modified:
    cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java

Modified: cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
URL: http://svn.apache.org/viewvc/cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java?rev=1402097&r1=1402096&r2=1402097&view=diff
==============================================================================
--- cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
(original)
+++ cxf/trunk/rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/JAXBSchemaInitializer.java
Thu Oct 25 10:52:10 2012
@@ -326,7 +326,10 @@ class JAXBSchemaInitializer extends Serv
         SchemaInfo schemaInfo = serviceInfo.getSchema(qn.getNamespaceURI());
         if (schemaInfo != null) {
             el = schemaInfo.getElementByQName(qn);
-            if (el != null && !typeName.equals(el.getSchemaTypeName())) {
+            if (el == null) {
+                createXsElement(schemaInfo.getSchema(), part, typeName, schemaInfo);
+
+            } else if (!typeName.equals(el.getSchemaTypeName())) {
                 throw new Fault(new Message("CANNOT_CREATE_ELEMENT", LOG,
                                             qn, typeName, el.getSchemaTypeName()));
             }



Mime
View raw message