that's what i want to know. i want to access those services, how could i achieve this. I tried jax-ws which netbeans does but not able to connect it. My
java client is as follows:
System.setProperty("javax.net.ssl.trustStore","d:/keystore/cert.cer");
System.setProperty("javax.net.ssl.trustStorePassword","changeit");
System.setProperty("javax.net.ssl.trustStoreType", "JKS");
try { // Call Web Service Operation
System.setProperty( "javax.net.ssl.keyStore",endpoint ) ;
System.setProperty( "javax.net.ssl.keyStorePassword","changeit" ) ;
System.setProperty("javax.net.ssl.keyStoreType", "JKS");
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
org.me.client.GetSubResultService service = new org.me.client.GetSubResultService();
org.me.client.GetSubResult port2 = service.getGetSubResultPort();
// TODO initialize WS operation arguments here
int i = 30;
int j = 10;
// TODO process result here
int result = port2.sub(i, j);
System.out.println("Result = "+result);
} catch (Exception ex) {
System.out.println("Exception occurs in web services : "+ex);
}
=====================
Now i'm getting this exception as:
Exception occurs in web services : javax.xml.ws.WebServiceException: java.net.SocketException: Default SSL context init failed: null
============================
how should i access the web services running on https from java client....
please help me out....