aspose file tools*
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jax-ws header problem" Watch "Jax-ws header problem" New topic
Author

Jax-ws header problem

John Farrel
Ranch Hand

Joined: May 24, 2010
Posts: 84

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.

John
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jax-ws header problem