File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes wsimport - can't generate client classes Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "wsimport - can Watch "wsimport - can New topic
Author

wsimport - can't generate client classes

ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
When generating client classes from wsimport command, I am getting following exception:


javax.net.ssl.SSLHandshakeException:sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path torequested target


I searched on net and found that I will have to download the certificate first and then specify that when issuing wsimport command.

How do I install certification? When I click on Install Certification on security warning window, it installs somewhere but I don't know the location.

If anyone tried generating client classes for "secured" WSDL with wsimport command, please give me some pointers?

Thanks.
[ September 02, 2008: Message edited by: ankur rathi ]
ankur rathi
Ranch Hand

Joined: Oct 11, 2004
Posts: 3830
This issue is solved after I told my JDK that the site's certificate is trusted one (installed certificate from that site and added that into JDK's cacerts file).

Let me run the stub (client) and see what next (error) I get?

Thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: wsimport - can't generate client classes
 
Similar Threads
WSDL Reference in generated Client Stub.
JAX-WS RI wsimport not working
How to do ???
Wsimport in build scripts is giving error when trying to create web service client from WSDL.
GENERATE WEBSERVICE[JAX-WS] CLIENT JAR FILE USING MAVEN.XML