Does this have anything to do with CXF?
Would this not be a question for the forum supporting your client
application's server?
You have not even mentioned the server technology that you client runs on.
Ron
On 18/12/2010 5:53 AM, mike wrote:
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!!