You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by aj...@apache.org on 2007/10/22 18:21:15 UTC
svn commit: r587140 -
/webservices/commons/trunk/modules/XmlSchema/src/main/java/org/apache/ws/commons/schema/SchemaBuilder.java
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