Paging data from a web service
Use something like 
 foreach ($result as $node) 
{
    $rows[] = array('data' => array("".  $node  ."..."));
    $html = theme('table',array('header' => $header,'rows'=>$rows,'caption' => '','sticky' => FALSE,'empty' => 'No details found...','attributes'=>array('class'=>'table-class'),));
    $html.= theme('pager',array('tags' => array(),'quantity'=> 10));
}