Thank you Andrei, of course you were right.

I've Base64 encoded my credentials and now i see ApplicationPolicy and
NamePasswordCallbackHandler initialized correctly.

...
URL myURL = new URL(serviceURL);
HttpURLConnection myURLConnection =
(HttpURLConnection)myURL.openConnection();
String basicAuth = "Basic " + new String(new
Base64().encode(userCredentials.getBytes()));
myURLConnection.setRequestProperty ("Authorization", basicAuth);
myURLConnection.setRequestMethod("GET");
...





--
View this message in context: 
http://cxf.547215.n5.nabble.com/AuthorizationPolicy-null-in-message-using-URL-encoded-credentials-tp5738445p5738489.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to