uCosminexus Application Server, Web Service Development Guide

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

4.1 Configuration examples of development (Starting from WSDL)

This section describes the examples of the development of Web Services starting from WSDL.

The following table describes the configuration for developing Web Services:

Table 4-1 Web Service configuration (Starting from WSDL)

No. Item Value
1 Name of the J2EE server to be deployed jaxwsserver
2 Host name and port number of the Web server webhost:8085
3 URL of the naming server corbaname::testserver:900
4 Context root fromwsdl
5 Style document/literal/wrapped
6 Namespace URI http://example.com/sample
7 Port type Number 1
8 Local name TestJaxWs
9 Operation Number 1
10 Local name jaxWsTest1
11 Service Number 1
12 Local name TestJaxWsService
13 Port Number 1
14 Local name testJaxWs
15 WSDL file name input.wsdl

The following table describes the configuration of the current directory when developing Web Services.

Table 4-2 Configuration of the current directory (Starting from a WSDL)

Directory Description
c:\temp\jaxws\works\fromwsdl This is the current directory.
 

 
server\ Used for the development of Web Services.
 
 
 
 
 
 
 
 
 
 
 
 
META-INF\ Corresponds to the META-INF directory of EAR files.
 
application.xml Created in 4.3.6 Creating application.xml.
src\ Stores the source file (*.java) for Web Services. Used in 4.3.2 Generating SEI and 4.3.4 Compiling the Web Service Implementation Class.
WEB-INF\ Corresponds to the WEB-INF directory of WAR files.
 
web.xml Created in 4.3.5 Creating web.xml.
 
 
classes\ Stores the compiled class file (*.class).
wsdl\ Stores the created wsdl.
temporary\ Saves temporary files, when creating a WSDL based on the WSDL that is coded and converted using Java. Temporary directory is optional.
 
 
src\
 
classes\
 
fromwsdl.ear Created in 4.3.7 Creating EAR files.
fromwsdl.war
client\ Used for the development of Web Service clients.
 
 
 
 
src\ Stores the source file (*.java) of the Web Service client. Used in 4.5.1 Generating a service class and 4.5.2 Creating an implementation class for the Web Service client.
classes\ Stores the compiled class file (*.class). Used in 4.5.3 Compiling the implementation class for the Web Service client.
usrconf.cfg Created in 4.6.1 Creating an option definition file for Java applications.
usrconf.properties Created in 4.6.2 Creating a user property file for Java applications.

Change the current directory path according to the environment to be developed.

Note that the directory and file names listed in the above table will be used in the description hereafter. The part in Bold in the command execution examples and in the Java source indicates the specified values and the generated values that are used in examples. Read according to the environment that you want to build.

Also, in the development examples described in this chapter, Web Services and Web Service clients are developed in the same environment, but you can also develop them in different environments. For developing Web Services and Web Service clients in different environments, read the current directory path suitable to the respective environments.