You configure your web services at several different levels.
Basic project settings like the web application or EJB module's source roots and classpath are set in the module's Project Properties dialog box. You open this dialog box by right-clicking the project node and choosing Properties.
For standard projects, you can add source roots in the Sources page of the Project Properties dialog box. You can quickly add to the compilation and test classpath by right-clicking the Libraries or Test Libraries node in the Projects window. To further configure the classpath, or to specify which items should be included in deployment, use the Libraries page of the Project Properties dialog box.
For JAX-WS web services, you can either use the Web Service Attributes editor or generate WSDL and Schema files and edit them manually.
To use the Web Service Attributes editor, go to the Projects window, find the project's Web Services node, right-click the web service and select Edit Web Service Attributes.
To generate WSDL and Schema files, go to the Projects window, find the project's Web Services node, right-click the web service and choose Generate and Copy WSDL. A wizard opens in which you select the location for the WSDL and schema files. After you generate the schema and WSDL, you can edit them manually. After editing these files, you need to add a wsdlLocation attribute to the service's @WebService annotation. The wsdlLocation attribute's value is the path to the generated WSDL.
If you copy and edit the WSDL and schema files, you must add the wsdlLocation to the web service. The IDE generates a WSDL file at build time, and if the wsdlLocation is not specified, the IDE uses the WSDL it generates itself instead of the one you generated.
The main decision you make when you create a RESTful service is how to register that service. When you create the service, the IDE opens a dialog where you choose whether to use the default web.xml deployment descriptor created by the IDE or to write the registration yourself. For EE6 services, you also have the choice of using an IDE-generated subclass of javax.ws.rs.core.Application. After you create the service, you can change how the service is registered by going to the Projects window, right-clicking the application's RESTful Web Services node, and choosing REST Resources Configuration.
You can also generate and edit a WADL for a web application. To generate the WADL, select New File > Web Services > WADL Document. To help you edit the WADL document, install the WADL Designer plugin.
There are several key steps to configuring deployment settings:
Configuring web services via deployment descriptors. You can manually configure your deployment descriptors by opening the project's web.xml deployment descriptor. In the case of EE6 RESTful services, which by default do not have deployment descriptors, you can generate a deployment descriptor by adding New > Web > Standard deployment descriptor (web.xml).
Changes made to the web.xml deployment descriptor override configuration settings in annotations.