Looping n number of times and combining the result

  • Thread starter Thread starter Sumo55
  • Start date Start date
S

Sumo55

Guest
I am calling a webservice that doesn't give all the results at one time. I have to call n(pageNumber) number of times in order to get all the results and then combine all the results into one list. Every single times it calls, i have to put the result in a list and when the results returned are zero from the web service then i have to combine all the list into one or we can just add all the results to the very first list when it loops.

I have to pass the Pagenumber and PageSize every time. Page size remains the same every time.

example

http://localhost/MyWebServices?pageNumber=0&pageSize=500

http://localhost/MyWebServices?pageNumber=1&pageSize=500

http://localhost/MyWebServices?pageNumber=2&pageSize=500

How can i do this?

Continue reading...
 
Back
Top