axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mika Goeckel (JIRA)" <j...@apache.org>
Subject [jira] Commented: (AXIS2-419) org.apache.ws.commons.schema.SchemaBuilder Method setNamespaceAttributes() overwrites Schemata already parsed
Date Tue, 31 Jan 2006 21:18:34 GMT
    [ http://issues.apache.org/jira/browse/AXIS2-419?page=comments#action_12364720 ] 

Mika Goeckel commented on AXIS2-419:
------------------------------------

Cool! Thanks for the excellent fast reaction!

> 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


Mime
View raw message