You can create a web operation as follows:
Open the Operations tab in the property sheet of a web service, and click the Add a Row tool.
For general information about creating objects, see the Objects Core Features Guide.