About Building Web Services
See Also
In general, you build a web service implemented within a EJB module
or a web application just as you would build any other
project. As with other projects, the IDE automatically detects whether a project is part of a J2EE application
and sets whether to package the archive files on the classpath accordingly. The
IDE does not package API libraries like the Servlet API in your EJB module JAR
file. You can adjust which archive files are packaged with your module in the
module project's Project Properties dialog box.
However, for JAX-WS web services, the wsimport tool is run
as part of the build process. For JAX-RPC web services, it is the wsimport tool
tool that is run, instead.
To build the web service:
- Do one of the following to build the web service:
- If the module within which the web service is implemented
is part of a J2EE application, make sure the J2EE application
is set as the main project and choose Build > Build
Main Project (F11).
- If the project is a stand-alone module, or if you want to build the
module without building the other modules in the J2EE application, right-click
the project's node in the Projects window and choose Build Project.
- Analyze the result and, if necessary, do the following:
- For JAX-WS web services, customize the wsimport tool's
attributes, using the Web Service Attributes Editor.
- For JAX-RPC web services, customize the wscompile tool's features,
depending on your needs:
- See Also
- About Web Services
Legal Notices