File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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: PKIX path building failed: 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?

[ 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?

I agree. Here's the link:
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.