New Web Service Wizard: Name and Location
See Also
The New Web Service wizard creates a new Web Service.
You open the New Web Service wizard by right-clicking a web application,
choosing New > Other and selecting Web Service from the Web Services category.
In the Name and Location page, you have to set the following properties:
- Web Service Name. Specifies the name of the web service. The name is used to name the
files that are created by the web service wizard:
- For JAX-WS web services, one file is created:
- For JAX-RPC web services, three files named as follows are created:
- NewWebService-config.xml
- NewWebServiceImpl.java
- NewWebServiceSEI.java
- Location. Specifies the source root where the web service files will be created.
By default, you only have one source root, the src folder. To add additional source roots,
right-click the project node in the Projects window, choose Properties, click Sources, and define
a new source package folder.
- Package. Specifies the package name where the web service files will be housed.
- Create Web Service from Scratch. Use this when you have no code to expose.
- Create Web Service from Existing Session Bean. Use this when you have a
session bean in an EJB module or web application
that you want to expose. Click Browse and then select the session bean
that you want to expose as a web service.
- Implement Web Service as Stateless Session Bean. (EE6 only) If you are creating a web service from scratch, you can
select this option to create the web service as a stateless session bean. Note that the ability to have session beans in web applications
was introduced in EE6.
- See Also
- About Web Services
Legal Notices