"AndroidHttpTransport cannot be resolved to type error in ksoap2

This is in eclipse for an android app. I am using ksoap2 to access a function in wsdl online. When creating soapobject () for this, I encounter this error. I added the ksoap2 jar file to the build path, and all the rest of the code related to ksoap2 works fine. I tried a google search but didn't find anything. So how to prevent this error?

+7
source share
1 answer

AndroidHttpTransport is AndroidHttpTransport replaced by HttpTransportSE Now.

you can use HttpTransportSE as below:

 HttpTransportSE HttpTransport = new HttpTransportSE(YOUR_URL); 

Hope this works for you.

+26
source

All Articles