Bug 780435 (SOA-2868)

Summary: JBossWS native adds additional namespace declarations to output
Product: [JBoss] JBoss Enterprise SOA Platform 5 Reporter: Kevin Conner <kevin.conner>
Component: JBossWSAssignee: trev <tkirby>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 5.1.0.ER7CC: atangrin, mmusaji
Target Milestone: ---   
Target Release: FUTURE   
Hardware: Unspecified   
OS: Unspecified   
URL: http://jira.jboss.org/jira/browse/SOA-2868
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
JBossWS native adds additional namespaces upon output when documents have been added to the SOAP body. SOAPFactoryImpl forces namespace declarations to be added for all child elements which are not immediate descendants of the element declaring the namespaces.
Story Points: ---
Clone Of: Environment:
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 Kevin Conner 2011-02-03 12:41:00 UTC
Help Desk Ticket Reference: https://c.na7.visual.force.com/apex/Case_View?id=500A0000006H4xF&sfdc.override=1
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 Kevin Conner 2011-02-03 12:42:29 UTC
Simple demonstration of issue.

Comment 2 Kevin Conner 2011-02-03 12:42:29 UTC
Attachment: Added: NamespaceIssue.java


Comment 3 Mustafa Musaji 2011-02-03 15:49:35 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:32:39 UTC
Link: Removed: This issue is a dependency of JBPAPP-5866 


Comment 6 Anne-Louise Tangring 2012-02-07 15:47:36 UTC
Should be in builds we pick up from EAP 5.1.2 sources.

Comment 7 Suz 2012-06-15 01:20:35 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
JBossWS native adds additional namespaces upon output when  documents have been added to the SOAP body. SOAPFactoryImpl forces namespace declarations to be added for all child elements which are not immediate descendants of the element declaring the namespaces.