This week's book giveaway is in the
We're giving away four copies of
and have Rami Sarieddine on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
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 javax.xml.ws.Service?
I try creating an all-trusting TrustManager in the SSLSocketFactory and try to bind it with BindingProvider
SSLContext sc = SSLContext.getInstance("SSL");
sc.init(null, trustAllCerts, new java.security.SecureRandom());
, 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 javax.xml.ws.Service to use the HttpsURLConnection 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-2014