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]](FIGURE/ZU112000.GIF)
An overview of the individual operations is as follows:
- 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.
- 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.
- Generating a Java source
Generate the Java source required for developing the Web Services. For details, see 8.2.4 Generating a Java source.
- 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.
- 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.
- 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.
- 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.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.