aspose file tools*
The moose likes Android and the fly likes Problem in consuming webservice using KSOAP2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Problem in consuming webservice using KSOAP2 " Watch "Problem in consuming webservice using KSOAP2 " New topic
Author

Problem in consuming webservice using KSOAP2

Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

I am trying to consume a simple, SOAP-based web service using KSOAP2, as mentioned in this thread. I have KSOAP2.jar and android.jar in my classpath.

Problem is when I run my application I get a java.lang.VerifyError on the ServiceConnection class. The Exception dump is:

E/AndroidRuntime( 385): java.lang.VerifyError: org.ksoap2.transport.AndroidServiceConnection
E/AndroidRuntime( 385): at org.ksoap2.transport.AndroidHttpTransport.getServiceConnection(AndroidHttpTransport.java:89)
E/AndroidRuntime( 385): at org.ksoap2.transport.AndroidHttpTransport.call(AndroidHttpTransport.java:38)
E/AndroidRuntime( 385): at com.demo.wsclient.FirstActivity.onCreate(FirstActivity.java:39)
E/AndroidRuntime( 385): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1122)
E/AndroidRuntime( 385): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2103)
E/AndroidRuntime( 385): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2156)
E/AndroidRuntime( 385): at android.app.ActivityThread.access$1800(ActivityThread.java:112)
E/AndroidRuntime( 385): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1580)
E/AndroidRuntime( 385): at android.os.Handler.dispatchMessage(Handler.java:88)
E/AndroidRuntime( 385): at android.os.Looper.loop(Looper.java:123)
E/AndroidRuntime( 385): at android.app.ActivityThread.main(ActivityThread.java:3742)
E/AndroidRuntime( 385): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime( 385): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime( 385): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
E/AndroidRuntime( 385): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497)
E/AndroidRuntime( 385): at dalvik.system.NativeStart.main(Native Method)


I compiled KSOAP2 jar with my SDK. Not sure what the problem is.

Has anyone tried this?

Thanks.

[List of FAQs] | [Android FAQ] | [Samuh Varta]
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

Few more questions...
1. Does this work with the new version of the SDK?
2. Will Android library be extended in future to include classes that will help in consumption of SOAP-based web services?(most of the Google's web services are RESTful).


Thanks.
Monu Tripathi
Rancher

Joined: Oct 12, 2008
Posts: 1369
    
    1

I am still stuck with this...

Required: Any links to tutorials, articles that can help (consume a SOAP-based or RESTful web service)

Thanks.
 
 
subject: Problem in consuming webservice using KSOAP2