Invoking adapter select service and looping resultset

Greetings,

Could you please post a small example of Java service invoking simple adapter SELECT service and looping the resultset.
I guess the structure of “mySelectServiceOutput” will be like:

mySelectServiceOutput->
results->
result[0]->customer_id(for example)


result[99]->customer_id

Spent lots of time and heed your help.
Thanks in advance, PR