Selecting a row and invoking webService

I am trying to create a portlet that displays a list of values and lets you choose one row for editing.
The edit form then invokes an IS service to store the data in a database.
I do not however understand how I can get the values from the selected row into my edit form.
Any suggestions?