• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jax-ws header problem  RSS feed

John Farrel
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!