开发者

calling two different methods of web service in a single activity

I hav开发者_如何转开发e a web service which has two different methods like 'returnInt' and 'returnImg'.

Is it possible to call these two methods in my single android activity?

I am using kSOAP for this and I have a java WebService.


Well in my application;

I have a Python XML WebService on the server side. On the client side I use Android-xmlrpc library which is a very thin and open source library and works great for my case.

In the client application, it is possible to call more than one method of the WebService within the same activity. But I suggest to, issue webService calls on the separate threads. Also be sure that your web server is multi-threaded and capable of concurrent calls.


yes its possible to call any number of WS from an acitivty. Just make sure that each WS call is running in a different thread and if one WS call needs to precede the other then proper handling using message queues is done.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜