• Post Reply Bookmark Topic Watch Topic
  • New Topic

Java calling .net Https webservice ignore SSL(TLS) Certificate  RSS feed

 
Luis Ol
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I imported the WSDL in the application and became a package. Then i tried to call the method and gives this error:


WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. Exception in thread "main" java.lang.Exception: ; nested exception is: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at AA.clt.OS.CallOSWebService(OS.java:40) at AA.clt.Main.main(Main.java:7)

So i search for a solution, but i dont want to add right now the certificate because it can change a lot and the call in internal so i want to ignore this error and connect anyway so i found this:



and calling the WS this way:



But the error maintains. What i'm doing wrong?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!