原来是用http连接web服务,用ksoap2可以运行,现在改为https,那么问题来了,用的自签名证书,然后报错“javax.net.ssl.SSLHandshakeException: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found.”证书问题,网上找到的是解决方法是忽略证书验证即trustAllHosts,这安全性好像有问题啊,然后就继续百度,得出一段代码可以获取到web服务上的代码,问题是我不知都怎样接入ksoap2的代码里
原来是用http连接web服务,用ksoap2可以运行,现在改为https,那么问题来了,用的