什么是调用SOAP Web服务与Android的最佳途径? [英] What is the best way to call SOAP web service with Android?
问题描述
我需要一些建议。
我有一个 WSDL
,我需要调用一些服务。
I need some advices.
I've a WSDL
and I need to call some services.
对于你来说,什么是调用 SOAP的Web服务
与Android的最佳途径?
我知道,我们可以:
For you, What is the best way to callSOAP web service
with Android?
I know that we can:
- 使用库
KSOAP 2
- 创建
XML
模板,并通过一个简单的http协议
发送。 - 或者我可以这样做:
- use the library
Ksoap 2
- create
xml
templates and send them by a simplehttp protocol
. - Or i can do something like:
public class AppelService {
从自己的经验,你认为什么是做到这一点的最好方法是什么?
From your own experience, what do you think is the best way to do it ?
任何帮助是AP preciated。
谢谢你。
any help is appreciated. Thanks.
推荐答案
我肯定会提倡用的 ksoap2-的Android libary 。我做了这个非常的研究,并没有什么比在通用性方面使用这个库。
您提供的code是ksoap2。
I would definitely advocate using ksoap2-android libary. I have done this very research, and nothing beats using this library in terms of versatility. The code you have provided is ksoap2.
从ksoap2-android的网站:
From the ksoap2-android website:
该ksoap2-Android项目提供了一个轻量级的,高效的SOAP
图书馆为Android平台。
The ksoap2-android project provides a lightweight and efficient SOAP library for the Android platform.
它是一种与Android测试kSOAP2库的叉
平台的初衷。它也有一堆更多的功能和
增强和发生在bug修复和贡献,并释放
经常。它也容易获得对Maven和Ant用户的一致好评。
It is a fork of the kSOAP2 library that is tested with the Android platform in mind. It also has a bunch of more features and enhancements and takes in bug fixes and contributions and releases regularly. It is also easily available for Maven and Ant users alike.
这篇关于什么是调用SOAP Web服务与Android的最佳途径?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!