I have generated client stub using wsdl2java. I am able to call webservices of HTTP server. But I have HTTPS server with self signed certificate. When I called same service for HTTPS server, its throwing exception : PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
How to modify client stub to accept all certificates?