[英]Passing values from android app to .Net web service?
I am trying to access .Net web service from android app and I am facing a very weird issue. 我正在尝试从android应用访问.net Web服务,但遇到了一个非常奇怪的问题。 The code I found for passing values from android app to .Net web service is like:
我发现的用于将值从android应用传递到.Net Web服务的代码如下:
PropertyInfo pi=new PropertyInfo();
pi.setName("a");
pi.setValue(a);
pi.setType(Integer.class);
But in my Android studio it's not even showing the method setName or setValue . 但是在我的Android Studio中,它甚至没有显示setName或setValue方法。 I set name like this:
我这样设置名称 :
PropertyInfo pi=new PropertyInfo();
pi.name="a";
pi.type=Integer.class;
but I am not getting any method to set the value. 但我没有任何方法来设置值。 I am having ksoap2-android-full-2.1.2.jar as jar file reference, I downloaded it from http://www.java2s.com/Code/Jar/k/Downloadksoap2androidassembly252jar.htm
我将ksoap2-android-full-2.1.2.jar作为jar文件参考,我从http://www.java2s.com/Code/Jar/k/Downloadksoap2androidassembly252jar.htm下载了它
Please let me know where I am doing mistake? 请让我知道我在哪里做错了吗? Thanks in advance.
提前致谢。
Finally It's working. 终于可以了。 Those who are facing the same problem, download
那些面临同样问题的人,请下载
ksoap2-android-assembly-2.3-jar-with-dependencies.jar ksoap2-android-assembly-2.3-jar-with-dependencies.jar
from this link: https://code.google.com/archive/p/ksoap2-android/downloads 通过此链接: https : //code.google.com/archive/p/ksoap2-android/downloads
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.