my dog learned polymorphism
The moose likes Web Services and the fly likes Jax-ws header problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jax-ws header problem" Watch "Jax-ws header problem" New topic

Jax-ws header problem

John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 85

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 ""
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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Jax-ws header problem