Introduction
Right-click a module project and choose "Web Service Registration":

The Web Service Registration wizard appears. Fill in the details of your web service, using information from the web service's WSDL file, such as this one, which is used in the example below.

An XML file is generated. Then register the generated XML file in the layer:
Add a 16x16 icon and a 32x32 icon (look in the XML file to see what they're called). Possibly also tweak the Bundle.properties file. Then install the module. The web service will now appear, after you restart the IDE, in the Palette (if a REST resource is open):

It will also appear in the Web Services node in the Services window. Drag and drop it and the client side stubs are generated.
If you drag and drop into a REST resource from the Palette, you will see this customizer, where you can fill in the service's parameters (if any):

Click OK and you'll see this:

In other words, you'll have a new REST sub resource and a stub method for retrieving it. Next, you can test the RESTful web service, by right-clicking the application and choosing "Test RESTful Web Services", with this result:

Issues:
- Layer registration should be automatic.
- Should be possible to get the web service information automatically from the WSDL.
- If the WSDL contains method names that are the same as NetBeans keywords (such as "boolean"), errors will result in the editor, when you drag and drop a web service item from the palette into the editor. You'll then need to manually fix the code in the editor.
What's new in this version
Added the screenshots below.