[
https://issues.apache.org/jira/browse/WSCOMMONS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Philippe Mouawad updated WSCOMMONS-327:
---------------------------------------
Attachment: NamespaceBug.zip
Eclipse project that contains full test case.
Philippe Mouawad
www.ubik-ingenierie.com
> 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]