not verif...">

Android ksoap2 via https

can anyone connect to soap server using ksoap2 android via https?

I keep getting the error "Hostname <###> not verified"

I do

AndroidHttpTransport androidHttpTransport = new AndroidHttpTransport (URL);
androidHttpTransport.call(SOAP_ACTION, envelope);

apparently looking back at another ksoap that is not designed for Android, we have another challenge for connecting via https, but I cannot find a way to do this in the Android version.

Has anyone found a way to recognize or use a call?

thanks for the help

+3
source share
3 answers

android ksoap2 2.5.2 is missing which supports https

http://code.google.com/p/ksoap2-android/

the problem is that I'm not sure how to use it

HttpsTransportSE aht = new HttpsTransportSE(host, port, file, timeout)

""? - ?

btw AndroidHttpTransport ksoap2

+2

, Android:

Btw: " Android", J2SE, (KeepAlive) HttpsTransportSE lib ( ksoap2-j2se-full- 2.1.2.jar). HttpsTransportSE, KeepAliveHttpsTransportSE HttpsServiceConnectionSE ksoap2-android J2SE . , - ( - ksoap2, , , ksoap2 -).

+6

( "). ksoap, java.net.URL, Sun Javadoc -" ". ksoap2 https SOAP. , Android SSL-. , , SSL Apache Httpclient . REST. , Google , .

+2

Source: https://habr.com/ru/post/1732434/


All Articles