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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to