I tried this. But, I can't get them in server inInterceptor. Method
message.getHeaders() doesn't return them. There is server inInterceptor
code:
public class ServerInInterceptor extends AbstractSoapInterceptor {
static final Log log = LogFactory.getLog(ServerInInterceptor.class);
public ServerInInterceptor() {
super(Phase.USER_PROTOCOL);
}
public void handleMessage(SoapMessage message) {
System.out.println("Headers");
for (Header h : message.getHeaders())
System.out.println(h.getName());
}
}
dkulp wrote:
>
> On Friday 21 November 2008 6:19:59 am Andrew123 wrote:
>> Hi all,
>>
>> I want to move my application from xfire to CXF. But I have few
>> questions.
>>
>> 1. Before calling web service I set some parameters to request header. I
>> use handlers in xfire for this purposes. As I know, in CXF handlers were
>> changed to interceptors. But I can't find, how add headers in
>> interceptor.
>> Can I set some value to header in inteceptor?
>
> Yes. If the Message is a "SoapMessage", then just call
> message.getHeaders()
> and add them to the returned list.
>
>
>
> --
> Daniel Kulp
> [EMAIL PROTECTED]
> http://dankulp.com/blog
>
>
--
View this message in context:
http://www.nabble.com/XFire-Migration-tp20619183p20623939.html
Sent from the cxf-user mailing list archive at Nabble.com.