当我尝试从我的 android 应用程序中访问 HTTPS URL (.Net Webservice) 时,我在 android 2.1 中收到“javax.net.ssl.SSLException: Not trust server certificate”异常。谁能帮帮我?下面是示例代码。
SoapObject parameter = getSOAPRequestParameter();
SoapSerializationEnvelope envelope = new SoapSerializationEnvelope(SoapEnvelope.VER11);
envelope.setOutputSoapObject(parameter);
HttpTransportSE httpTransport = new HttpTransportSE(WSDL_URL);
httpTransport.debug = true;
httpTransport.call(WS_NAMESPACE + WS_METHOD_NAME, envelope);
谢谢。