cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject git commit: [CXF-6034] Fix problems with mapping schema locations to resolvable locations when generating the live wsdl
Date Mon, 27 Oct 2014 19:47:37 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes f2bc4d431 -> 754ebbdd7


[CXF-6034] Fix problems with mapping schema locations to resolvable locations when generating
the live wsdl


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/754ebbdd
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/754ebbdd
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/754ebbdd

Branch: refs/heads/3.0.x-fixes
Commit: 754ebbdd7c2aab05b484cb1a0fe8bb48e4fe9376
Parents: f2bc4d4
Author: Daniel Kulp <dkulp@apache.org>
Authored: Mon Oct 27 15:45:26 2014 -0400
Committer: Daniel Kulp <dkulp@apache.org>
Committed: Mon Oct 27 15:47:28 2014 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java      | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/754ebbdd/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java
----------------------------------------------------------------------
diff --git a/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java b/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java
index cdedc6d..07d96e4 100644
--- a/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java
+++ b/rt/frontend/simple/src/main/java/org/apache/cxf/frontend/WSDLGetUtils.java
@@ -473,6 +473,9 @@ public class WSDLGetUtils {
                     if (!doneSchemas.containsKey(decodedStart)) {
                         String resolvedSchemaLocation = resolveWithCatalogs(catalogs, start,
base);
                         if (resolvedSchemaLocation == null) {
+                            resolvedSchemaLocation = resolveWithCatalogs(catalogs, imp.getSchemaLocationURI(),
base);
+                        }                        
+                        if (resolvedSchemaLocation == null) {
                             try {
                                 //check to see if it's already in a URL format.  If so, leave
it.
                                 new URL(start);
@@ -484,6 +487,7 @@ public class WSDLGetUtils {
                         } else {
                             if (doneSchemas.put(decodedStart, imp) == null) {
                                 doneSchemas.put(resolvedSchemaLocation, imp);
+                                doneSchemas.put(imp.getSchemaLocationURI(), imp);
                                 updateSchemaImports(bus, imp.getReferencedSchema(), docBase,
doneSchemas, base);
                             }
                         }


Mime
View raw message