Search code examples
androidandroid-ksoap2

How can I call more than one web service at once or one by one in Android?


How can I call more than one web service at once or one by one in Android? Because if I add two properties then an error occurs. I use KSOAP2 for calling the webservice.


Solution

  • You can use Mutlitple AsyncTask to carry out the parallel webservice call. so it will be calling multiple webservice at once. now if you want to do one by one then in single asynctask you can do it after getting response of the previous one.

    for AsycTask please refer this link

    AsyncTask Android example