Hi, I have a web service client that is trying to call a webservice secured with basic authentication. I had this working with JAVA 6 but not with JAVA 5.
I am setting the username and password correctly as seen below but I am still getting a 401 error code back. When I used tcpmon to inspect the request\response, I can see that the username and password is not being passed to the client.
Map requestContext = ((BindingProvider) manager).getRequestContext(); requestContext.put(BindingProvider.USERNAME_PROPERTY, username); requestContext.put(BindingProvider.PASSWORD_PROPERTY, password);
Which version of JBossWS are you using? Given the current lib configuration, you're using the different jax-ws implementation when switching from JDK 1.5 to 1.6 (more specifically you use the Sun's one with JDK6 as you don't have jbossws specific jars in endorsed dir).
Perhaps you might want to try with more recent jbossws version?