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

Reply via email to