A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
How to disable certificate validation in JAX-WS Client?
Joined: Sep 13, 2012
Sep 18, 2012 02:43:06
How to disable certificate validation in JAX-WS client using
I try creating an all-trusting TrustManager in the
and try to bind it with BindingProvider
sc = SSLContext.getInstance("SSL");
sc.init(null, trustAllCerts, new
, Object> ctxt = ((BindingProvider) wsport ).getRequestContext();
but I still getting Exception: unable to find valid certification path to requested target
But it works when I just use HttpsURLConnection.setDefaultSSLSocketFactory(sc.getSocketFactory());
Or is there a way to make
to use the
that I create?
I agree. Here's the link:
subject: How to disable certificate validation in JAX-WS Client?
JAX-WS - understanding BindingProvider
Setting time out for web service call
Pass object from a webservice client to the MessageContext
Printing request object xml
Change address location webservice
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015