除了使用KSOAP访问从Android应用程序的WebService由于KSOAP罐子大小 [英] Alternative to using KSOAP for accessing WebService from Android application due to KSOAP jar size

查看:356
本文介绍了除了使用KSOAP访问从Android应用程序的WebService由于KSOAP罐子大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我加入 ksoap2-J2SE的全2.1.2.jar 作为外部JAR到Android项目和放大器;访问的 SOAP API 访问 .NET Web服务从Android应用程序即可。
的ksoap2-J2SE的全2.1.2.jar的大小为96 KB &安培;所以我不想使用外部罐来增加Android应用程序的大小。

I am adding ksoap2-j2se-full-2.1.2.jar as external jar into Android project & accessing the SOAP API to access .NET webservices from Android application. The size of the ksoap2-j2se-full-2.1.2.jar is 96 KB & so I dont want to increase the size of the Android application by using the external jar.

请提供按我们可以从Android应用程序访问.NET Web服务的备用选项,以便在Android应用程序的大小得到降低

Kindly provide an alternate option by which we can access the .NET webservice from Android application so that the size of the Android application get reduced.

亲切问候,

Chiranjib

Chiranjib

推荐答案

您可以减少code的大小仅添加到什么是使用的 Proguard的。你也可以使用 ProGuard的使用Maven Android插件如果你正在用Maven构建您的应用程序。此外,如果你正在使用它在Android上,你应该使用的 ksoap2-Android项目。是的,恕我直言,这是值得进行合理的应用程序交谈几句Web服务或者如果你需要额外的大小把事情的工作宜早不宜迟。

You can reduce the size of the code added to only what is actually needed by using Proguard. You could also use proguard with the maven android plugin if you are building your app with maven. Also if you are using it on Android you should be using the latest release (2.5.1) of the ksoap2-android project. And yes, imho it is worth the additional size for a reasonable app talking to a few web services or if you need to get things working sooner rather than later.

这篇关于除了使用KSOAP访问从Android应用程序的WebService由于KSOAP罐子大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆