Adding of Root Node in XMLBinding is done without a prefix.
-----------------------------------------------------------

                 Key: CXF-289
                 URL: http://issues.apache.org/jira/browse/CXF-289
             Project: CXF
          Issue Type: Bug
    Affects Versions: 2.0-M1
            Reporter: Ajay Paibir
            Priority: Minor


in XMLMessageOutInterceptor the xmlformat RootNode if present is added without 
a suitable prefix. This causes the rootNode element to be in xmlns="some 
namespace uri" whichis okay. But some child elements end up in this namespace 
since they are not qualified.
A typical XMLMessage generated for soap_header.wsdl in testutil. is 
<inHeaderReqNode xmlns="http://apache.org/headers";>
     <inHeader xmlns:ns2="http://www.w3.org/2005/08/addressing/wsdl"; 
xmlns="http://apache.org/headers/types";>
        <requestType>in request type</requestType>
     </inHeader>
     <SOAPHeaderInfo xmlns:ns2="http://www.w3.org/2005/08/addressing/wsdl"; 
xmlns="http://apache.org/headers/types";>
         <originator>in originator</originator>
         <message>in message</message>
     </SOAPHeaderInfo>
</inHeaderReqNode>

So the <requestType> elements should be in http://apache.org/headers/types but 
actually end up in http://apache.org/headers.

The fix for this in XMLMessageOutInterceptors which is attached with this bug 
description.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to