Basically, I am wondering if it is possible to set something in the soap
response header in the interceptor (not in the service method
implementation) during PRE_STREAM phase.

On Thu, Oct 29, 2009 at 2:09 PM, Arik Gorelik <arikg...@gmail.com> wrote:

> Seems like if there is a heavy dependency on CXF in the project (as in my
> case), the best option is this one:
>
> 4. CXF proprietary way: In the context (BindingProvider.getRequestContext()
> on client, WebServiceContext on server), you can add a
> List<org.apache.cxf.headers.Header> with the key Header.HEADER_LIST. The
> headers in the list are streamed at the appropriate time to the wire
> according to the databinding object found in the Header object. Like option
> 1, this doesn't require changes to wsdl or method signatures. However, it's
> much faster as it doesn't break streaming and the memory overhead is less.
>
> Let's say I want to return an ID in the header with every response, is that
> something I can do in the PRE_STREAM interceptor on the OUT scope?
>
> Arik.
>   On Thu, Oct 29, 2009 at 10:48 AM, Daniel Kulp <dk...@apache.org> wrote:
>
>>  On Thu October 29 2009 1:01:20 pm Arik Gorelik wrote:
>> > Hello,
>> >
>> > I cannot seem to find any example of how to include/set headers/values
>> in
>> > the SOAP response. Is there a CXF example on that? I can think of few
>> ways
>> > to do this, but was wondering if anyone has a best practice sample.
>>
>> See the faq:
>>
>> http://cxf.apache.org/faq.html
>>
>>
>>
>> --
>> Daniel Kulp
>> dk...@apache.org
>> http://www.dankulp.com/blog
>>
>
>

Reply via email to