Android的SOAP客户端 [英] SOAP client for Android
问题描述
我已经痛下决心建立 SOAP 客户端Android版。我发现有一个 ksoap2 从一些职位的lib,例如。但有 SAAJ ( SOAP 带有附件的Java API)为好。
I have faced up to building SOAP client for Android. I found out there is a ksoap2 lib from some posts, for example. But there is SAAJ (SOAP with Attachments API for Java) as well.
我的问题是:是否有可能使用它?有没有人尝试过的 SAAJ 作为Android应用程序?
My question is: is it possible to use it? Has anyone ever tried SAAJ for Android apps?
THX了很多。
推荐答案
如果WSDL为目标的服务并不复杂,你应该检查出的 HttpClient的捆绑与Android核心库。这是微不足道的使用。您可以捕获请求/通过了SoapUI 或的提琴手然后用它们作为基础XML模板,您的客户端中。
If the WSDL for your target service is not that complicated you should check out httpclient bundled with Android core libraries. It's trivial to use. You can trap request/response through SoapUI or Fiddler and then use them as base XML templates within your client.
这篇关于Android的SOAP客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!