You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ba...@apache.org on 2007/04/10 23:15:55 UTC

svn commit: r527301 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java

Author: barrettj
Date: Tue Apr 10 14:15:54 2007
New Revision: 527301

URL: http://svn.apache.org/viewvc?view=rev&rev=527301
Log:
AXIS2-2503
Set system ID to prevent infinite recursion.

Modified:
    webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java

Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java?view=diff&rev=527301&r1=527300&r2=527301
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java Tue Apr 10 14:15:54 2007
@@ -98,7 +98,12 @@
 
             }
         }
-        return new InputSource(is);
+        InputSource returnInputSource = new InputSource(is);
+        // We need to set the systemId.  XmlSchema will use this value to maintain a collection of
+        // imported XSDs that have been read.  If this value is null, then circular XSDs will 
+        // cause infinite recursive reads.
+        returnInputSource.setSystemId(schemaLocation);
+        return returnInputSource;
     }
 
     /**



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