cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glen Mazza <glen.ma...@gmail.com>
Subject Re: Add a field in http headers does not work?
Date Wed, 08 Jul 2009 18:48:16 GMT

I think the BindingProvider will do what you want, see Step #7 here:
http://www.jroller.com/gmazza/entry/setting_up_ssl_and_basic

Or the Metro guide here:
https://metro.dev.java.net/guide/HTTP_headers.html

I'm unsure how to do this within an interceptor, however.

HTH,
Glen


Alexandre N wrote:
> 
> Hi,
> 
> I want to add a field in http header (not in soap header).
> 
> I did a out interceptor.
> 
> public class MyOutInterceptor extends AbstractSoapInterceptor
> {
>     
>     public MyOutInterceptor()
>     {
>         super(Phase.POST_LOGICAL);
>     }
> 
> 
>     @Override
>     public void handleMessage(final SoapMessage message) throws Fault
>     {
>         System.out.println("MyOutInterceptor.handle soapMessage=" +
> message);
>         message.put("token", "tokenValue");
>         message.put("SOAPAction", "action2");
>     }
> }
> 
> It is quite weird because SOAPAction is correct to action2 but token is
> not added.
> I suppose is because it was present before but I don't know why.
> I tried others phases but without success.
> 
> If someone has a solution.
> 
> 

-- 
View this message in context: http://www.nabble.com/Add-a-field-in-http-headers-does-not-work--tp24396137p24397207.html
Sent from the cxf-user mailing list archive at Nabble.com.


Mime
View raw message