问题
I have implemented ksoap2 (https://simpligility.github.io/ksoap2-android/getting-started) in my android project.
Now i have a valid SSl certificate and now i want to make call every api with using that ssl certificate. My web service has HTTPS
val envelope = SoapSerializationEnvelope(SoapEnvelope.VER11)
envelope.setOutputSoapObject(soapObject)
envelope.dotNet = true
val httpTransportSE = HttpTransportSE(URL)
try {
httpTransportSE.call(SOAP_ACTION, envelope)
val soapPrimitive = envelope.response as SoapPrimitive
result = soapPrimitive.toString()
} catch (e: Exception) {
e.printStackTrace()
}
It is working without ssl as well. But i want to add ssl certificate while making web service call.
I have put my ssl cert in raw folder. Now how can i call my web service with my ssl cert ?
来源:https://stackoverflow.com/questions/62006180/how-can-i-attach-ssl-cert-with-ksoap2-android