This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am developing a jax-ws client and I've hit a snag.
The service requires a sequence of cookies for handshaking.
Eventually any request to the web service returns two cookies which I need to store for the next call.
The problem I have is that both cookies are put in the response header as 'Set-Cookie' values.
For the response I get a BindingProvider which is a map.
In the map is a value for "javax.xml.ws.http.response.headers"
That value is also a map.
The map contains a value for 'Set-Cookie'
The problem is, only one of the cookies is set, probably because of the use of a map clobbers one value with the second value.
Is there any way to get the raw data instead?
Logging shows I am definitely receiving both values, but the jaxws objects just don't contain all they should, as a far as I can see.
Annoyingly this works in axis, which returns a map to a list of values when there is more than one 'Set-Cookie' value in the header.