I think you can use Interceptors to do this. ...
Le 29 juin 2012 06:39, "kdesin" <[email protected]> a écrit :
> Hi All/Sergey,
>
> To explain a bit more:
>
> WebClient client =WebClient.create("myURL");
> client.type("text/html");
> client.accept("text/html");
> HTTPClientPolicy hcp=new HTTPClientPolicy();
> hcp.setConnectionTimeout(6000);
> hcp.setCookie("hello");
> Map<String, String> headers = new HashMap<String, String>();
> WebClient.getConfig(client).getHttpConduit().setClient(hcp);
>
>
> System.out.println("Cookies:"+WebClient.getConfig(client).getHttpConduit().getCookies());
> System.out.println("headers:"+client.getHeaders());
> resp= client.get();
>
> *Output:*
>
> Cookies:{}
> headers:{Content-Type=[text/html], Accept=[text/html]}
>
> I want to understand how I can print the entire request header before
> sending the request to the remote service as I am unable to see any cookies
> being printed which I have set.I even used the requestContext method to set
> the headers in a HashMap but with no luck.
> Hope I am clear.
>
> -----
> Saludos
> Kartheek
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/XML-HTTP-without-SOAP-in-CXF-tp5710174p5710453.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>