Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown


Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to use ssl for my apache axis web services.when i am running the following code i am getting ""


public class URLReader
public static void main(String[] args) throws Exception
if (args.length < 1)
System.err.println("Usage:: java URLReader <url>");
System.out.println("Trying to read the url: " + args[0]);
URL url = new URL(args[0]);
InputStreamReader isr = new InputStreamReader(url.openStream());

char[] buf = new char[1024];
int nread;
while ((nread =, 0, buf.length)) > 0)
System.out.print(new String(buf, 0, nread));
}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...
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In your client application I am not observed below Issue.

Made hand shake with your trusted Key store, Once it successful then server is accepted your request and followed by sent response to client,

Java provide HttpsURLConnection class for HTTPS connection, let�s have a look on API.

If you are using Apache AXIS client (I mean if you are using stub to connect the web services) , it is very simple and you need to set the few properties.
    Bookmark Topic Watch Topic
  • New Topic