New Web Service Wizard: Name and Location

The New Web Service wizard creates a new Web Service.

In the Name and Location page, you have to set the following properties:

Element Description

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.
Project Name of the project.
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

If you are creating a web service from scratch, you can select this option to create the web service as a stateless session bean.


Related Topics

Developing Applications with NetBeans IDE,

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0.