Bug 780436 (SOA-2869)

Summary: JBossWS native adds additional namespace declarations to output
Product: [JBoss] JBoss Enterprise SOA Platform 4 Reporter: Mustafa Musaji <mmusaji>
Component: JBossWSAssignee: trev <tkirby>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 4.3 CP02CC: hvnter, jboss.org, mmusaji
Target Milestone: ---   
Target Release: FUTURE   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2869
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
JBoss Enterprise SOA-P 4.3.0_CP02
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
NamespaceIssue.java none

Description Mustafa Musaji 2011-02-03 12:59:48 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000006H4xF&sfdc.override=1
Steps to Reproduce: Run the attached class using the jbossws-native 2.0.1 which is part of SOA-P 4.3.0_CP02.
project_key: SOA

SOAPFactoryImpl forces namespace declarations to be added for all child elements which are not immediate descendants of the element declaring the namespaces. This is seen in ESB as a consequence of adding a Document to the soap body.

For example

<say:sayHiResponse xmlns:say='http://www.jboss.org/sayHi' xmlns:say2='http://www.jboss.org/sayHi2'>
<say2:arg0>
<say2:arg2>Response</say2:arg2>
</say2:arg0>
</say:sayHiResponse>

will be created as

<say:sayHiResponse xmlns:say='http://www.jboss.org/sayHi' xmlns:say2='http://www.jboss.org/sayHi2'>
<say2:arg0>
<say2:arg2 xmlns:say2='http://www.jboss.org/sayHi2'>Response</say2:arg2>
</say2:arg0>
</say:sayHiResponse>

Comment 1 Mustafa Musaji 2011-02-03 13:00:31 UTC
Attached class to demonstrate problem

Comment 2 Mustafa Musaji 2011-02-03 13:00:31 UTC
Attachment: Added: NamespaceIssue.java


Comment 3 Mustafa Musaji 2011-02-03 15:49:40 UTC
Link: Added: This issue is a dependency of JBPAPP-5866


Comment 4 Alessio Soldano 2011-02-03 16:32:15 UTC
Link: Added: This issue depends JBPAPP-5866


Comment 5 Alessio Soldano 2011-02-03 16:33:38 UTC
Link: Removed: This issue is a dependency of JBPAPP-5866