Here are two ways to work with WS over SSL http://ws.apache.org/xmlrpc/ssl.html .
The right way is to configure and use a keystore for SE and EE solutions.
The following quick fix also works for me:
package client; import java.security.cert.X509Certificate; import javax.net.ssl.HostnameVerifier; import javax.net.ssl.HttpsURLConnection; import javax.net.ssl.SSLContext; import javax.net.ssl.SSLSession; import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import javax.xml.namespace.QName; import ws.MyService1; import ws.MyService1ServiceLocator; public class Client { public static void main(String[] args) throws Exception { test(); } public static void test() throws Exception {
source share