简体   繁体   中英

Problem using ksoap2 with Android

I thought I'd have a crack at building an Android app having not done any Java for five years (I've been living in MS land).

So my first project was supposed to be something easy. A simple login form that calls a WCF service that I already have from another project.

So I got the whole thing set up OK in Eclipse and the app is running in the AVD. I have also identified that I need ksoap2 for soap communication as Android devices are constrained.

I have what is likely to be a simple problem, however. When I run the app and attempt to simply create a new instance of the ksoap2 PropertyInfo class I get a whole bunch of ClassNotFoundExceptions for things like java.awt.Container and java.applet.Applet.

I'm obviously setting up my build path wrong somehow but can't figure it out.

BTW, I' using ksoap2 v2.4 from http://code.google.com/p/ksoap2-android/

I figured out the problem myself. It seems it was actually an issue in ksoap2 2.4.

I downloaded and used v2.3 and had no problems at all. Something to be aware of I guess.

请尝试最新的2.5.1版本,并在问题跟踪器或邮件列表中报告问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM