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 "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/01/31 21:57:33 UTC
[jira] Resolved: (AXIS2-419)
org.apache.ws.commons.schema.SchemaBuilder Method setNamespaceAttributes()
overwrites Schemata already parsed
[ http://issues.apache.org/jira/browse/AXIS2-419?page=all ]
Davanum Srinivas resolved AXIS2-419:
------------------------------------
Resolution: Fixed
> org.apache.ws.commons.schema.SchemaBuilder Method setNamespaceAttributes() overwrites Schemata already parsed
> -------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-419
> URL: http://issues.apache.org/jira/browse/AXIS2-419
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: core
> Environment: latest cvs
> jdk1.5
> win xp
> Reporter: Mika Goeckel
> Attachments: SchemaBuilder.diff, TwoSchemasTest.java, twoSchemas.wsdl
>
> When building a XmlSchemaCollection from a wsdl by subsequently parsing schema elements the following happens:
> The first schema is parsed and the targetNamespace and all namespaces from the schema and all parents are registered in the XmlSchemaCollection of this SchemaBuilder.
> The second schema is parsed and when the namespaces are registered, all previously parsed schemata are overwritten with empty namespace defs.
> The fix is, to test if a namespace is already registered and omit the registration in case.
> TestCase and Fix diff attached.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira