axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From barre...@apache.org
Subject svn commit: r527301 - /webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/URIResolverImpl.java
Date Tue, 10 Apr 2007 21:15:55 GMT
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


Mime
View raw message