ws-commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aj...@apache.org
Subject svn commit: r587140 - /webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
Date Mon, 22 Oct 2007 16:21:15 GMT
Author: ajith
Date: Mon Oct 22 09:21:15 2007
New Revision: 587140

URL: http://svn.apache.org/viewvc?rev=587140&view=rev
Log:
1. Fixed the second case in issue 264.

Modified:
    webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java

Modified: webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java?rev=587140&r1=587139&r2=587140&view=diff
==============================================================================
--- webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
(original)
+++ webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
Mon Oct 22 09:21:15 2007
@@ -1780,6 +1780,17 @@
 			InputSource source = collection.schemaResolver.resolveEntity(
 					targetNamespace, schemaLocation, baseUri);
 
+			//the entity resolver was unable to resolve this!!
+			if (source == null) {
+				//try resolving it with the target namespace only with the 
+				//known namespace map
+				XmlSchema schema = collection.getKnownSchema(targetNamespace);
+				if (schema != null) {
+					return schema;
+				}else{
+					return null;
+				}
+			}
 			final String systemId = source.getSystemId() == null ? schemaLocation
 					: source.getSystemId();
 			final SchemaKey key = new XmlSchemaCollection.SchemaKey(



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


Mime
View raw message