0

I want to call .net web service into Android application. For that I am using running web service available on net called "www.w3schools.com/webservices/tempconvert.asmx"

It's running successfully with browser, but when I call it in my Android application it gives me error in my tab device. The log cat info is shown below:

06-08 17:27:16.351: E/dalvikvm(5767): Could not find class   'org.ksoap2.serialization.SoapObject', referenced from method com.example.wscallingapk.WS_MainActivity.onCreate

06-08 17:27:22.612: E/AndroidRuntime(5767): FATAL EXCEPTION: main
06-08 17:27:22.612: E/AndroidRuntime(5767): java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject
06-08 17:27:22.612: E/AndroidRuntime(5767):     at com.example.wscallingapk.WS_MainActivity.onCreate(WS_MainActivity.java:37)

06-08 17:27:22.612: E/AndroidRuntime(5767):     at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2679)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at android.app.ActivityThread.access$2300(ActivityThread.java:125)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2033)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at android.os.Handler.dispatchMessage(Handler.java:99)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at android.os.Looper.loop(Looper.java:123)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at android.app.ActivityThread.main(ActivityThread.java:4627)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at java.lang.reflect.Method.invokeNative(Native Method)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at java.lang.reflect.Method.invoke(Method.java:521)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at java.lang.reflect.Method.invoke(Method.java:521)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:871)

06-08 17:27:22.612: E/AndroidRuntime(5767):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
06-08 17:27:22.612: E/AndroidRuntime(5767):     at dalvik.system.NativeStart.main(Native Method)

1 Answer 1

0

ksoap2-android-assembly-2.6.2-jar-with-dependencies.jar

Download this library from this Link

and put it into your lib folder of your project.

5
  • i can not import this jar file into lib folder because it gives me wrong file error like " Source file is not a valid Zip file."
    – Dipali
    Commented Jun 8, 2013 at 12:21
  • can you give me other link ?
    – Dipali
    Commented Jun 8, 2013 at 12:25
  • i have include this jar into lib folder, still its giving me problem in "SoapObject request = new SoapObject(WSDL_TARGET_NAMESPACE,OPERATION_NAME);" line
    – Dipali
    Commented Jun 8, 2013 at 12:49
  • it gives error in tab that "application has stopped unexpectedly" and log cat error details i have already attached before
    – Dipali
    Commented Jun 8, 2013 at 12:53
  • let us continue this discussion in chat Commented Jun 8, 2013 at 12:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.