Hi,
this depends whether you want to implement a SOAP or a REST web service.
For a SOAP web Service you can create a function modul and use the wizard to create the webservice. For a REST web service you create a SICF-Service and add a custom HTTP handler.