uCosminexus Application Server, Application Development Guide
This subsection describes how to develop a Web Service client using Web applications.
The following figure shows the flow of Web Service client development using Web applications:
Figure 8-4 Flow of Web Service client development using Web applications
An overview of the individual operations is as follows:
The following subsections describe the development of a Web Service client using the Web applications, according to the above flow.
Create a dynamic Web project to be used for developing a Web Service client using Web applications. For details on how to create dynamic Web projects, see the subsection 4.4.1 Creating a dynamic Web project.
Acquire a WSDL file that describes the meta information of Web Services you are trying to invoke, or if the URL of the WSDL file has been released, acquire that URL.
Based on the acquired WSDL file, generate the Java source (service class, SEI, and Java Bean (stub)) required for developing and executing the Web Service client. You can use Eclipse to generate the Java source. The procedure of generating the Java source is same as described in the subsection 8.4.1(4) Generating a Java source, however in Project in the Web Service Client dialog box, select dynamic Web project name of the workspace.
When the following operations or settings are performed and the Web Service Client dialog box appears, the Java source folder selection becomes blank and the subsequent operations can no longer be performed. Therefore, specify a folder other than the project root in Java source folder.
Use the generated Java source to implement the Web Service client. For the examples of implementing a Web Service client, see 3.6 Implementing a Web Service client in the manual uCosminexus Application Server Web Service Development Guide.
In web.xml, add the definition of JSPs and servlets that implement the Web Service client.
Create the enterprise application projects. For details on how to create the enterprise application projects, see the subsection 4.4.4 Creating an enterprise application project.
In the enterprise application project, add dynamic Web project for the Web Service client created in 8.4.2(2) Creating a dynamic Web project. To add a dynamic Web project:
Deploy and debug the created projects.
On the J2EE server, deploy the J2EE applications that are created from the enterprise application project. For details on how to deploy the J2EE applications, see the subsection 6.7 Releasing a project on a J2EE server.
Debug the created J2EE applications. For details on how to debug the J2EE applications, see the subsection 6.8 Debugging and executing J2EE applications.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.