我正在创建此链接中给出的 android Web 服务:http: //www.ibm.com/developerworks/webservices/library/ws-android/但是当我执行我的应用程序时,我在我的 logcat 中得到了这个。
06-18 15:11:23.980: E/AndroidRuntime(26893): FATAL EXCEPTION: main
06-18 15:11:23.980: E/AndroidRuntime(26893): java.lang.NoClassDefFoundError: org.ksoap2.serialization.SoapObject
06-18 15:11:23.980: E/AndroidRuntime(26893): at com.example.androidwsclient.MainActivity.onCreate(MainActivity.java:28)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.app.Activity.performCreate(Activity.java:4470)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1049)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:1920)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:1981)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.app.ActivityThread.access$600(ActivityThread.java:123)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1147)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.os.Handler.dispatchMessage(Handler.java:99)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.os.Looper.loop(Looper.java:137)
06-18 15:11:23.980: E/AndroidRuntime(26893): at android.app.ActivityThread.main(ActivityThread.java:4424)
06-18 15:11:23.980: E/AndroidRuntime(26893): at java.lang.reflect.Method.invokeNative(Native Method)
06-18 15:11:23.980: E/AndroidRuntime(26893): at java.lang.reflect.Method.invoke(Method.java:511)
06-18 15:11:23.980: E/AndroidRuntime(26893): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:817)
06-18 15:11:23.980: E/AndroidRuntime(26893): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
06-18 15:11:23.980: E/AndroidRuntime(26893): at dalvik.system.NativeStart.main(Native Method)
有什么帮助吗??请我对此很陌生。我正在创建一个使用 JAX-WS 来显示数据的 android 应用程序。也在我的源代码中:
private static String URL="http://my ipconfig:3333/HelloWebService/HelloWSService?WSDL";
private static final String METHOD_NAME = "hello";
我从cmd找到了我的IP。请问这也对吗???