David,
Open up the FM in SE37 and chose the below menu path.
UTILITIES->MORE UTILITIES - > CREATE A WEB SERVICE - > FROM THE FUNCTION MODULE.
Once you are there, SAP will take you thru various steps thru which you can expose the FM as a web service to be consumed from web applications.
Thanks,
Vikram.M