On Thursday 30 August 2007, Chris Campbell wrote:
> On client I have:
>
> java.util.Map<String, Object> context =
> ((javax.xml.ws.BindingProvider)client).getRequestContext();
> context.put("username", "chris");
> context.put("password", "foobar");
>
> How do I access that context on the server side in my interceptor? I
> cannot seem to find where it is in the Message object, or am I
> horribly misunderstanding something?
With those keys, they wouldn't get to the server. You would need to
use the BindingProvider.* keys.
On the server side in an interceptor, you should be able to do:
AuthorizationPolicy policy = message.get(AuthorizationPolicy.class);
--
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727 C: 508-380-7194
[EMAIL PROTECTED]
http://www.dankulp.com/blog