You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by am...@apache.org on 2007/09/25 10:57:03 UTC
svn commit: r579133 -
/webservices/axis2/trunk/java/modules/jaxbri/src/org/apache/axis2/jaxbri/CodeGenerationUtility.java
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