Ksoap sending arguments and receiving results

本秂侑毒 提交于 2019-12-11 07:15:27

问题


I'm using KSoap within my Android application. My application using Web Service for communicate with the server. I have found a code sample of a KSoap wev service client. In the sample, the client uses the following code for communication with the server -

Request = new SoapObject(NAMESPACE, METHOD_NAME);

How do I pass arguments to the server?
How do I invoke the return value form the server?


回答1:


You should use SoapObject.addProperty() to add argument and SoapSerializationEnvelope.getResponse() to get data returned by server.

Here is example: http://android-devblog.blogspot.com/2010/06/soap-on-android.html



来源:https://stackoverflow.com/questions/5052643/ksoap-sending-arguments-and-receiving-results

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