Clean up Soap headers usage
---------------------------

                 Key: CXF-260
                 URL: http://issues.apache.org/jira/browse/CXF-260
             Project: CXF
          Issue Type: Improvement
    Affects Versions: 2.0-M1
            Reporter: Dan Diephouse
             Fix For: 2.0-RC


Currently ReadHeadersInterceptor does:

message.setHeaders(Element.class, element);
message.put(Element.class, element);      

(line 90)

This should not happen. Only SoapMessage.headers should be set. 

In addition SoapInPostInterceptor uses message.get(Element.class) when it 
should be using SoapMEssage.getHeaders(). The SoapInPostInterceptor should 
probably be renamed something more useful like HeaderDatabindingInterceptor.

We should also rework SoapHeader.getHeaders() to only return an Element. I 
don't think getHeaders(Class type) is the right way to handle multiple header 
formats.

-- 
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