Search code examples
javaandroidsoapksoap2

Android ksoap2 via https


has any one been able to connect to a soap server using ksoap2 android via https?

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

I'm doing

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

apparently looking back at other ksoap which isn't for android your ment to us a different call to connect via https, but i can't find a way to do it in the android version.

Anyone found a way about or know the call im ment to use?

thanks for you help


Solution

  • android ksoap2 2.5.2 is out which supports https

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

    the problem is i dont quite sure how to use it

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

    what shoud i enter for "file" parameter? anybody have any idea?

    btw AndroidHttpTransport is deprecated in the latest version of ksoap2