Depending on the implementation form and EE version, create a web application
project or create an EJB module project.
In the Projects window or Files window, right-click the project node
and choose New > Web Service.
The New Web Service wizard opens.
Type the web service name and specify a package to house the web service.
Select the creation type:
Create an Empty Web Service. Use this when you have no existing code to expose.
Delegate to Existing Session Enterprise Bean. Use this when you have a session bean
in an EJB module.
Click Browse to select the session bean to which you want to delegate.
Click Finish.
The IDE
creates an implementation class. The
implementation class is created with the required web
service annotations and import statements.