[
https://issues.apache.org/jira/browse/WSCOMMONS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12591086#action_12591086
]
Philippe Mouawad commented on WSCOMMONS-327:
--------------------------------------------
As I couldn't for now determine where the source of the bug is, I submitted a
bug in the 2 other concerned projects:
https://issues.apache.org/jira/browse/AXIS2-3760
http://issues.apache.org/jira/browse/XMLBEANS-370
> Namespace High verbosity combined with XMLBeans
> -----------------------------------------------
>
> Key: WSCOMMONS-327
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-327
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Environment: All
> Reporter: Philippe Mouawad
> Attachments: NamespaceBug.zip
>
>
> Serializing an XMLBeans generated Document with:
> org.apache.axiom.om.impl.builder.StAXOMBuilder builder = new
> org.apache.axiom.om.impl.builder.StAXOMBuilder(
> OMAbstractFactory.getOMFactory(),
> new
> org.apache.axis2.util.StreamWrapper(document.newXMLStreamReader(xmlOptions)));
> org.apache.axiom.om.OMElement documentElement = builder
> .getDocumentElement();
>
> ((org.apache.axiom.om.impl.OMNodeEx)documentElement).setParent(null);
> documentElement.serialize(System.out, new OMOutputFormat());
> Generated stream contains namespace redeclaration :
> <getLocatedProducts
> xmlns="http://v1.product.ws.store.kingfisher.com"><param0><callType
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode
>
> xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0></getLocatedProducts>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]