我正在使用KSOAP2開發Android。使用KSOAP2的Android ASP Web服務
我收到以下錯誤:
java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.
我的代碼是:
SoapObject Request = new SoapObject(NAMESPACE, METHOD_NAME);
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(
SoapEnvelope.VER11);
envelope.dotNet = true;
envelope.setOutputSoapObject(Request);
try {
HttpTransportSE androidHttpTransport = new HttpTransportSE(URL);
androidHttpTransport.call(SOAP_ACTION, envelope);
SoapObject response = (SoapObject) envelope.getResponse();
String result = response.getProperty(0).toString();
textView1.setText(result);
} catch (Exception e) {
//textView1.setText(e.getMessage());
}
提供完整的logcat輸出。 –
java.security.cert.CertPathValidatorException:找不到證書路徑的信任錨點。 – jas7