uCosminexus Application Server, Application Development Guide

[Contents][Glossary][Index][Back][Next]

8.2.1 Flow of developing Web Services starting from WSDL

You can use Eclipse to develop POJO Web Services and EJB Web Services starting from WSDL. Specifically, the procedures for developing POJO Web Services and EJB Web Services are the same, except for several minor differences. The following figure shows the flow of developing Web Services starting from WSDL.

Figure 8-1 Development flow of Web Services starting from WSDL

[Figure]

An overview of the individual operations is as follows:

  1. Creating a project
    When developing a POJO Web service, you create a dynamic Web project to be used for developing Web Services. For details, see 8.2.2 Creating a project.
    When developing an EJB Web service, create an EJB project because the EJB Web service is included in the EJB-JAR file. For details, see 4.4.2 Creating an EJB project.
  2. Creating a WSDL file
    Create a WSDL file or acquire the URL of a released WSDL file. For details, see 8.2.3 Creating a WSDL file.
  3. Generating a Java source
    Generate the Java source required for developing the Web Services. For details, see 8.2.4 Generating a Java source.
  4. Implementing the Web Services
    Implement the Web Services in the skeleton of the Web Service implementation class. For details, see 8.2.5 Implementing a Web Service.
  5. Editing web.xml
    When developing a POJO Web service, add the settings for the Web Services. For details, see 8.2.6 Editing web.xml.
    When developing an EJB Web service, you need not edit web.xml because the EJB Web service is included in the EJB-JAR file.
  6. Creating enterprise application projects and adding modules
    Create the enterprise application project, and then add the dynamic Web project or the EJB project. For details, see 8.2.7 Creating enterprise application projects and adding modules.
  7. Deploying and debugging J2EE applications
    Deploy, and then debug the J2EE applications in the J2EE server. For details, see 8.2.8 Deploying and debugging J2EE applications.

The following subsections describe the development of Web Services starting from the WSDL according to the above flow.