SOAP client for Android

谁都会走 提交于 2019-12-08 13:50:44

问题


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.

My question is: is it possible to use it? Has anyone ever tried SAAJ for Android apps?

Thx a lot.


回答1:


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.




回答2:


No, you can't use SAAJ for android unfortunately. It relies on the javax.xml package, which android won't work with.



来源:https://stackoverflow.com/questions/6463437/soap-client-for-android

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!