UserID of Uswer invoking a service

HI,
How do I get the username of the person invoking a service (via http) into my Flow? Have tried to use the getSession but it returns no information.
Thanks for any help,
Guy

I have found the answer in another news group.
Use wm.server.query:getCurrentUser
It returns the user in a string named username
Regards,
Guy