axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ami...@apache.org
Subject svn commit: r579133 - /webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java
Date Tue, 25 Sep 2007 08:57:03 GMT
Author: amilas
Date: Tue Sep 25 01:57:03 2007
New Revision: 579133

URL: http://svn.apache.org/viewvc?rev=579133&view=rev
Log:
the systemID must be unique to the schema. So for inline schemas we can not use the 
baseUri since it is not unique for all the schema. changed to target namespace to make that
unique.

Modified:
    webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java

Modified: webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java?rev=579133&r1=579132&r2=579133&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java
(original)
+++ webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java
Tue Sep 25 01:57:03 2007
@@ -99,7 +99,7 @@
                 XmlSchema schema = (XmlSchema)schemas.get(i);
                 InputSource inputSource =
                         new InputSource(new StringReader(getSchemaAsString(schema)));
-                inputSource.setSystemId(baseURI);
+                inputSource.setSystemId(schema.getTargetNamespace());
                 xmlObjectsVector.add(inputSource);
             }
 
@@ -114,7 +114,7 @@
                         if(schema.getTargetNamespace().equals(publicId)){
                             InputSource inputSource =
                                     new InputSource(new StringReader(getSchemaAsString(schema)));
-                            inputSource.setSystemId(baseURI);
+                            inputSource.setSystemId(schema.getTargetNamespace());
                             return inputSource;
                         }
                     }



---------------------------------------------------------------------
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