cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jervis Liu (JIRA)" <j...@apache.org>
Subject [jira] Created: (CXF-205) read and modify soap headers from SOAPHandler
Date Thu, 02 Nov 2006 08:46:16 GMT
read and modify soap headers from SOAPHandler
---------------------------------------------

                 Key: CXF-205
                 URL: http://issues.apache.org/jira/browse/CXF-205
             Project: CXF
          Issue Type: Improvement
          Components: JAX-WS Runtime
    Affects Versions: 2.0-M1
            Reporter: Jervis Liu
         Assigned To: Jervis Liu


Users should be able to access and modify soap headers in SOAPHandler:

    public boolean handleMessage(SOAPMessageContext smc) {
       .........
       SOAPMessage message = smc.getMessage();
       SOAPHeader header = message.getSOAPHeader();
       Name headerName = soapFactory.createName("Claim", "wsi", "http://ws-i.org/schemas/conformanceClaim/");
       SOAPHeaderElement headerElement = header.addHeaderElement(headerName);
       headerElement.addAttribute(soapFactory.createName("conformsTo"), "http://ws-i.org/profiles/basic1.0/");
	
       ...........
    }


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

        

Mime
View raw message