I'm trying to write a webservice for android using JAVA and KSOAP2. SOAP is the only protocol I can use and ReST is not an option.
So, I successfully created the SOAP request and connected to the server using HTTP. But, I need HTTPS as sensitive information will be transferred. Disabling the certificate check is not an option as the data is sensitive and I MUST use SSL.
Since Android threw certification error in HTTPS, I created my own keystore following
1- http://blog.antoine.li/index.php/2010/10/android-trusting-ssl-certificates/
and added it to the project.
My code is similar to
2- http://www.techques.com/question/1-4646121/Not-trusted-certificate-using-ksoap2-android.
I have also gone through
4 - Apache HttpClient on Android producing CertPathValidatorException (IssuerName != SubjectName)
but can't use them directly.
A pseudo code that shows the code in 1 in relation to the code in 2 with HTTPS will be greatly appreciated.
What does the last comment in 2 actually mean ? He uses HttpsTransportSE in his code but says he extended HttpsServiceConnectionSE. Can you show this in the pseudo code ?
Also, should I use HttpsTransportSE or HttpsServiceConnectionSE to provide the URL to which I will be connecting.