I am having trouble calling a IIS webpage, which enables Windows security. The code works fine in stand alone Java application, but not after deploying to weblogic.
Here is the sample code:
String auth = domain + "\\" + userName ":" + password;
String encodedAuth = new BASE64Encoder().encode(auth.getBytes());
URL url = new URL(serviceURL);
URLConnection yc = url.openConnection();
yc.setRequestProperty ("Authorization", "Basic " + encodedAuth);
BufferedReader in = new BufferedReader(new InputStreamReader(yc.getInputStream()));
How do we specify windows authentication? Is it the correct way? Thanks,