Two methods can be used to create a Web service. Use either the method for creating it as a Web application, or the method for creating it as an EJB application, as shown below.
Providing a Web service using a Web application
Select this method if you want to create a simple Web service and if the interface of the Web service must be strictly defined and WSDL must be used for the interface design.
For details, refer to "5.3.2 Creating the Web Service".
Providing a Web service using an EJB application
Select this method if you want to also use the provided function as EJB and if it is easier to develop and maintain a Web service if the application structure is an EJB module.
For details, refer to "5.3.3 Exposing a Stateless Session Bean as a Web Service".
If the provision format has been determined, create the project, then prepare an environment that allows the required libraries to be set in the project and enables the build.
Creating the Project
If the Web service is to be provided as a Web application, select [Web] > [Dynamic Web Project] from the [New Project] wizard and create a dynamic Web project.
If the Web service is to be provided as an EJB application, select [EJB] > [EJB Project] from the [New Project] wizard and create an EJB project.
For details, refer to "2.3.1 Preparing the Environment for Creating the Web Application" or "3.3.1 Preparing the Environment to create EJBs".
Classpath Settings
Classpaths must be set if there are libraries or similar that are required in order to create the application. Classpaths are set in the project build path.
For details on build path settings, refer to "6.2.2.3 Setting Classpaths".