You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "willem Jiang (JIRA)" <ji...@apache.org> on 2006/11/03 07:47:17 UTC
[jira] Resolved: (CXF-197)
javax.xml.ws.handler.MessageContext.HTTP_REQUEST_HEADERS and
HTTP_RESPONSE_HEADERS can't work
[ http://issues.apache.org/jira/browse/CXF-197?page=all ]
willem Jiang resolved CXF-197.
------------------------------
Resolution: Fixed
This should be fix in the reversion 470687
> javax.xml.ws.handler.MessageContext.HTTP_REQUEST_HEADERS and HTTP_RESPONSE_HEADERS can't work
> ----------------------------------------------------------------------------------------------
>
> Key: CXF-197
> URL: http://issues.apache.org/jira/browse/CXF-197
> Project: CXF
> Issue Type: Bug
> Reporter: willem Jiang
> Assigned To: willem Jiang
> Fix For: 2.0-M1
>
>
> I'm porting a RESTy service from Celtix 1.something to CXF and have noticed some differences in the way the HTTP protocol headers are handled.
> For example, in a service implemented using a Provider, I've tried getting the headers from the MessageContext like this:
> ctx.get(javax.xml.ws.handler.MessageContext.HTTP_REQUEST_HEADERS);
> This returns null though. Calling:
> Map<String, List<String>>hdrs = ctx.get (org.apache.cxf.message.Message.PROTOCOL_HEADERS);
> works though and I can get the headers ok.
> I also need to set the response headers and should be able to set a header like this:
> Map<String, List<String>>hdrs = ctx.get (javax.xml.ws.handler.MessageContext.HTTP_RESPONSE_HEADERS);
> hdrs.put(headerName, headerValue);
> and have it added to the outgoing response. However, as above using the MessageContext property does not return anything. I've tried using the org.apache.cxf.message.Message property like this
> Map<String, List<String>>hdrs = ctx.get (org.apache.cxf.message.Message.PROTOCOL_HEADERS);
> hdrs.put(headerName, headerValue);
> but there's no sign that the header has been correctly added.
--
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