JBoss.orgCommunity Documentation

Chapter 2. Creating a Simple Web Service

2.1. Generation

This chapter describes how to create a simple web service.

A simple web service can be created by using the Simple Web Service wizard as described in Generate a simple web service

Procedure 2.1. Generate a simple web service

  1. Access the New - Select a wizard dialog

    1. Right click on the project name in the Project Explorer view.

    2. Select NewOther.

    3. Expand the Web Services folder and click on the Simple Web Service option.

    Result:

    The New - Select a wizard dialog displays with the selected wizard type highlighted.

    Figure 2.1. The New - Other (Wizard selection) dialog


  2. Access the Simple Web Service dialog

    Click the Next button to proceed.

    Result:

    The Simple Web Service - Project and Web Service Details dialog displays.

    Figure 2.2. Simple Web Service - Project and Web Service Details


  3. Define the service attributes

    Define the project, web service, package and class names according to the options displayed in Table 2.1, “Project and Web Service Details”


  4. Generate the web service

    Click the Finish button to complete the web service setup.

    Result:

    The web service classes will be generated and the web.xml file updated with the deployment details if the Update web.xml option was selected.

    Figure 2.3. Created Simple Web Service