【发布时间】:2011-10-24 06:47:00
【问题描述】:
我正在使用 KSOAP2 开发 Android。
我收到以下错误:
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:找不到证书路径的信任锚。
标签: android asp.net web-services ksoap2