Schreiben von Software

Đã hoàn thành Đã đăng vào Sep 21, 2014 Thanh toán khi bàn giao
Đã hoàn thành Thanh toán khi bàn giao

I do make a request to a Website this gives me a XML Response with the variables, totalresults, itemsperPage and pos: In this example is: totalresults=totalItemCount, and pos=currentIndex:

This interface does gives only 200 entries once a day the totalresults could be mor than this 200 and thats the point how to loop the next day from the right position, itemsperPage is 10, for one request it gives a response with 10 entries in the File, if the totalItemCount is 425 in this Case the last File will have 5 entries.

the output on the console should be:

for example: totalItemCount is= 425

this should be the loop

"http:/query/currentIndex1" this will give back, 10 Entries.

"http:/query/currentIndex2" this will give back the next 10 Entries

..........

"http:/query/currentIndex20" this will give back the next 10 Entries" (because 20x10 makes)

if run the programm again

"http:/query/currentIndex21" this will give back the next 10 Entries (210 Entries)

...........

"http:/query/currentIndex42" this will give back the next 10 Entries ( because 42 x 10 makes 420).

May it should, there in the code another variable for the 200=Entries ?

I cann speak and write German if there is someone witch cann German this will be better.

PHP Kiến trúc phần mềm

ID dự án: #6484987

Về dự án

1 đề xuất Dự án từ xa Sep 21, 2014 đang mở

Được trao cho:

AviTenzer

Hi, I am an experienced Java developer. I have over 10 years Java development experience. I understand from the requirements that you are interested in developing some kind of paging reader for XML. I am happy to Thêm

£20 GBP trong 1 ngày
(1 Nhận xét)
0.9