我在android中编写了一个方法来调用我的Web服务。

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();
    }
}


但是当我调用此函数时,它返回以下内容:

javax.net.ssl.SSLHandshakeException:java.security.cert.CertPathValidatorException:找不到证书路径的信任锚。

我该如何解决
提前致谢

最佳答案

答案在此站点中描述:

https://gelecegiyazanlar.turkcell.com.tr/soru/ksoap2-ile-web-service-erisirken-sslhandshakeexception

10-08 09:19