web services - Ksoap2 Runtime Exception SoapObject ClassDefNotFound in Android -
i trying use .net service in android application using ksoap2 library. added reference jar of ksoap2-android-assembly-2.6.5-jar-with-dependencies in project. when run code runtime exception saying
java.lang.noclassdeffound : org.ksoap2.serialization.soapobject.
can please ? code.
soapobject request = new soapobject(namespace, method_name); soapserializationenvelope envelope = new soapserializationenvelope(soapenvelope.ver11); envelope.dotnet = true; envelope.setoutputsoapobject(request); httptransportse androidhttptransport = new httptransportse(url); try { androidhttptransport.call(soap_action, envelope); soapobject resultsrequestsoap = (soapobject) envelope.bodyin; tvtemp.settext("received :" + resultsrequestsoap.tostring()); } catch (exception e) { e.printstacktrace(); }
i solved problem using link provided first commentator on question. leaving answer here in case programmer faces same problem , comes across question.
the solution problem create folder named "libs" in project directory , copying external jar files there.
for further explanation, 1 can refer link. http://tools.android.com/recent/dealingwithdependenciesinandroidprojects
Comments
Post a Comment