Greetings, I have a JAX-WS web service deployed on an app server and I try to call it via a JAX-WS client generated by the maven cxf-codegen-plugin. But it doesn't work as the server returns HTTP 406 : Not Acceptable. I cannot figure out what happens as it works with SoapUI.
The only think I could think at is that the service requires user/password authentication. This is set in SoapUI via "User" and "Password" properties in the request properties. I'm doing the equivalent in the code like this: bindingProvider.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "foo"); bindingProvider.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "bar"); This is supposed to work correctly. Anyway, if the authentication was the problem, I would have HTTP 401 insted of HTTP 406. This is what I get when I'm altering the password in SoapUI. I tried to trace the SOAP trafic on the client side, as I don't have access to the server. But unsuccessfully. Could anyone advise please ? Many thanks in advance, Nicolas -- View this message in context: http://cxf.547215.n5.nabble.com/com-sun-xml-internal-ws-client-ClientTransportException-The-server-sent-the-status-code-HTTP-406-Note-tp5768944.html Sent from the cxf-user mailing list archive at Nabble.com.
