• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Problem in consuming webservice using KSOAP2

 
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Monu Tripathi
Rancher
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 1369
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am still stuck with this...

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

Thanks.
 
What is that? Is that a mongol hoarde? Can we fend them off with this tiny ad?
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic