axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philipp Lehmann (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5801) Axis2 xsd2java - namespace added to inherited attributes
Date Wed, 13 Jul 2016 14:17:20 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-5801?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Philipp Lehmann updated AXIS2-5801:
-----------------------------------
    Description: 
We have recently migrated from Axis2 1.6.2 to 1.7.3.
We have multiple XSDs that extend complex-type elements from a common parent XSD.

After the migration we have the namespace  add to the attributes.

1.6.2   <Attribute name="name"/>
1.7.3   <Attribute xmlns="http://www.example.org/master" name="name"/>

Each time a Attribute is created a XML-Namespace is Setup. Is it possible to define the XML-Namespace
 in the XML root knot via settings? 

For example:

 <child:Object xmlns:ns1="http://www.example.org/master">
<ns1:Attribute  name="name"/>
</child:Object>

I will attach an example with two XSDs and the Axis 1.7.3 generated source-code.





  was:
We have recently migrated from Axis2 1.6.2 to 1.7.3.
We have multiple XSDs that extend complex-type elements from a common parent XSD.

After the migration we have the namespace  add to the attributes.

1.6.2   <Attribute name="name"/>
1.7.3   <Attribute xmlns="http://www.example.org/master" name="name"/>

Each time a Attribute is created a XML-Namespace is Setup. Is it possible to define the XML-Namespace
 in the root knot? 

For example:

 <child:Object xmlns:ns1="http://www.example.org/master">
<ns1:Attribute  name="name"/>
</child:Object>

I will attach an example with two XSDs and the Axis 1.7.3 generated source-code.






> Axis2 xsd2java - namespace added to inherited attributes
> --------------------------------------------------------
>
>                 Key: AXIS2-5801
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5801
>             Project: Axis2
>          Issue Type: Bug
>          Components: adb
>    Affects Versions: 1.7.3
>         Environment: Axis2 1.7.3 
>  Windows 
>  Maven 3.3+ 
>            Reporter: Philipp Lehmann
>              Labels: None
>         Attachments: AXIS2-5801_Example.zip
>
>
> We have recently migrated from Axis2 1.6.2 to 1.7.3.
> We have multiple XSDs that extend complex-type elements from a common parent XSD.
> After the migration we have the namespace  add to the attributes.
> 1.6.2   <Attribute name="name"/>
> 1.7.3   <Attribute xmlns="http://www.example.org/master" name="name"/>
> Each time a Attribute is created a XML-Namespace is Setup. Is it possible to define the
XML-Namespace  in the XML root knot via settings? 
> For example:
>  <child:Object xmlns:ns1="http://www.example.org/master">
> <ns1:Attribute  name="name"/>
> </child:Object>
> I will attach an example with two XSDs and the Axis 1.7.3 generated source-code.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message