Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

"AndroidHttpTransport cannot be resolved to a type" error in ksoap2

This is in eclipse for an android app. I am using ksoap2 to access a function in an online wsdl. While making a soapobject() to do that, I am coming across this error. I have added the ksoap2 jar file in build path and all the rest of the code related to ksoap2 is working perfectly. I tried a google search, but found nothing. So how to prevent this error?

like image 335
ankit rawat Avatar asked Feb 09 '13 10:02

ankit rawat


1 Answers

AndroidHttpTransport is Replaced By HttpTransportSE Now.

you can Use HttpTransportSE as Below Way :

HttpTransportSE HttpTransport = new HttpTransportSE(YOUR_URL);

Hope it will Work for you.

like image 170
Bhavesh Patadiya Avatar answered Feb 09 '23 01:02

Bhavesh Patadiya