On Mon October 19 2009 6:11:26 pm oakridge wrote: > Hi all, > > I am trying to set a http request parameter that contains an encrypted > userid and password on the outbound message (client side). The token is > consumed by a filter running at the service endpoint. I have written a > JAXWS handler and tried setting the property via various MessageContext > attribtues (e.g. MESSAGE_OUTBOUND_PROPERTY, SERVLET_REQUEST, QUERY_STRING, > etc.), but none of these show up on the server side in the > HTTPServletRequest. This is not a restful service. Can this be done via > JAXWS? Am I on the right track?
What you need to do is grab the protocol headers out of the context (or add if they don't exist) and modify that. For jaxws proxy clients, you can do something like: Map<String, List<String>> headers = new HashMap<String, List<String>>(); ((BindingProvider)port).getRequestContext().put(MessageContext.HTTP_REQUEST_HEADERS, headers); and set various headers in the map and they should be transferred across. Dan > > Any help is appreciated. > > Thanks. > -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog