Does anybody know, how to read the JSESSIONID cookie? I'm sure, that the
cookie is set by the server.

I try this:

this.service = JAXRSClientFactory.create("http://localhost";,
RegistrationService.class);
                
this.client =
WebClient.client(this.service).accept(MediaType.APPLICATION_XML).type(MediaType.APPLICATION_XML);

this.service.login(loginCredentials); // server call
                
ClientConfiguration config = WebClient.getConfig(this.service);
HTTPConduit conduit1 = config.getHttpConduit();
Map cookies = conduit1.getCookies(); //<- is empty
                
String str =
WebClient.getConfig(this.service).getHttpConduit().getClient().getCookie();
//<-is null

What am i doing wrong?
Any hints?
Thanks!!
-- 
View this message in context: 
http://cxf.547215.n5.nabble.com/How-to-read-Cookies-in-CXF-Client-tp3310363p3310363.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to