2 Answers
2

GetListItems method accepts a parameter RowLimit to limit the number of items retrieved.

rowLimit - A string that specifies the number of items, or rows, to display on a page before paging begins. If supplied, the value of this parameter overrides the row limit set in the view specified by the viewName parameter or the row limit set in the default view for the list.

Row Limit only take care of the rows. While ViewFields will limit the fields.
– Amal HashimMar 26 '15 at 14:46

How rowLimit should make the server return only those fields listed in <ViewFieldsOnly>? My result should contain all items from query (if I use them). The task is to show only ID for each item (row).
– andriiMar 26 '15 at 14:47

I have tried <rowLimit>1</rowLimit> and (as expected) it limits rows but not columns
– andriiMar 26 '15 at 15:19

Please read the link i provided. ROWLIMIT only limits number of ROWS and not COLUMNS. For limiting columns you need to use <ViewFieldsOnly>.. but as per my above comment, the link says its a bug..
– Amal HashimMar 26 '15 at 15:21