Thanks - I manage to get it working once I stopped using Ant to run wsdl2java - is there a way to pass in those Java properties to the Ant wsdl2java task? Or do I have to use a java task that calls wsdl2java?
On 6/7/05, Nathaniel A. Johnson <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Andy Kriger wrote: > > I have web service running under Tomcat with SSL. In a browser I have > > verified that the wsdl file is only accessible through HTTPS. I use > > wsdl2java to generate my client-side classes. This worked find without > > SSL, now I get > > > > 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 > > > > How do you run wsdl2java so that it can connect to a secure web service? > > I am giving it the correct url (https with the secure port) but > > somehow I need to tell wsdl2java where to find the certificate. > > > > Are there any clear docs on how to do this? (I've done a lot of > > searching of mailing lists and forums without much luck at finding > > something specific to wsdl2java). > > you probably just need to import your ssl certificate into the jdk > running the client. the jdk usually uses the kestore at > <java_home>/jre/lib/security/cacerts ... then import your ssl cert in > with the java keytool program that comes with java. > > nate > > > > > > thx > > andy > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.0 (MingW32) > > iD8DBQFCpdYygj8ksIjnb2wRAjSUAJ4n7EGwxIfpu0qsf3lJwApNmbZNegCaA9v+ > ZJnXnKvCDVY+B7monN7T64A= > =IIvk > -----END PGP SIGNATURE----- >
