i am trying to use ssl for my apache axis web services.when i am running the following code i am getting "javax.net.ssl.SSLHandshakeException"
import java.io.*;
import java.net.URL;
import java.io.InputStreamReader;
public class URLReader
{
public static void main(
String[] args) throws Exception
{
if (args.length < 1)
{
System.err.println("Usage::
java URLReader <url>");
return;
}
System.out.println("Trying to read the url: " + args[0]);
URL url = new URL(args[0]);
try
{
InputStreamReader isr = new InputStreamReader(url.openStream());
char[] buf = new char[1024];
int nread;
while ((nread = isr.read(buf, 0, buf.length)) > 0)
System.out.print(new String(buf, 0, nread));
System.out.flush();
}catch(IOException e){ System.out.println("error"+e); };
}
}
will u plz solve it.
plz solve it and send u r reply to my personal id...
anand.pericherla@gmail.com