cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1401768 - /cxf/branches/2.6.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Date Wed, 24 Oct 2012 16:38:31 GMT
Author: dkulp
Date: Wed Oct 24 16:38:31 2012
New Revision: 1401768

URL: http://svn.apache.org/viewvc?rev=1401768&view=rev
Log:
Merged revisions 1401763 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1401763 | dkulp | 2012-10-24 12:25:02 -0400 (Wed, 24 Oct 2012) | 2 lines

  [CXF-4598] Problem with resolving imports/includes with validation turned on.

........

Modified:
    cxf/branches/2.6.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java

Modified: cxf/branches/2.6.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.6.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java?rev=1401768&r1=1401767&r2=1401768&view=diff
==============================================================================
--- cxf/branches/2.6.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
(original)
+++ cxf/branches/2.6.x-fixes/tools/wsdlto/databinding/jaxb/src/main/java/org/apache/cxf/tools/wsdlto/databinding/jaxb/JAXBDataBinding.java
Wed Oct 24 16:38:31 2012
@@ -639,7 +639,6 @@ public class JAXBDataBinding implements 
                     throw new RuntimeException(e);
                 }
                 Element ele = docs[0].getDocumentElement();
-                ele = removeImportElement(ele, key, catalog);
                 if (context.fullValidateWSDL()) {
                     String uri = null;
                     try {
@@ -649,6 +648,7 @@ public class JAXBDataBinding implements 
                     }
                     validateSchema(ele, uri, catalog);
                 }
+                ele = removeImportElement(ele, key, catalog);
                 try {
                     docs[0].setDocumentURI(key);
                 } catch (Throwable t) {
@@ -714,10 +714,10 @@ public class JAXBDataBinding implements 
                 }
                 ids.add(key);
                 Element ele = sci.getElement();
-                ele = removeImportElement(ele, key, catalog);
                 if (context.fullValidateWSDL()) {
                     validateSchema(ele, sci.getSystemId(), catalog);
                 }
+                ele = removeImportElement(ele, key, catalog);
                 InputSource is = new InputSource((InputStream)null);
                 //key = key.replaceFirst("#types[0-9]+$", "");
                 is.setSystemId(key);



Mime
View raw message