java - Could not call my webservice for trust issue in android -
i wrote method in android call webservice.
public void helloworld() { soapobject request = new soapobject(namespace, method_name); soapserializationenvelope envelope = new soapserializationenvelope( soapenvelope.ver11); envelope.dotnet = true; envelope.setoutputsoapobject(request); httptransportse androidhttptransport = new httptransportse(url); try { androidhttptransport.call(soap_action, envelope); soapprimitive response = (soapprimitive) envelope.getresponse(); log.e("ali", response.tostring()); } catch (exception e) { e.printstacktrace(); } }
but when call function, return :
javax.net.ssl.sslhandshakeexception: java.security.cert.certpathvalidatorexception: trust anchor certification path not found.
how fix in advance
the answer described in site :
https://gelecegiyazanlar.turkcell.com.tr/soru/ksoap2-ile-web-service-erisirken-sslhandshakeexception
Comments
Post a Comment