cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <gma...@talend.com>
Subject Re: Set HTTP Header on response from SOAP web service
Date Thu, 16 Feb 2012 18:49:37 GMT
http://java.dzone.com/articles/apache-cxf-how-add-custom-http?

HTH,
Glen

On 02/16/2012 12:48 PM, Nathaniel Auvil wrote:
> i generated server stubs from WSDL.  I have a use case where i need to be
> able to set the HTTP Status code in responses is certain error conditions.
> How do i get a handle to the HTTP response in my SOAP based service which
> has the JAXB objects as input and outputs?
>
> For the WS-Addressing header info i inject the WebServiceContext in my bean
> so i can access that.  I seem to remember there being a RequestContext
> object in CXF at some point which used thread local to get the current
> context and allowed for HTTP Header access request and response, but i do
> not see that in 2.5.1
>
> Any help is greatly appreciated.
>


-- 
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza


Mime
View raw message