uCosminexus Application Server, Web Service Development Guide

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

31.5.1 Generating a service class

If you execute the cjwsimport command, the Java source, such as a service class that is required for developing the Web Service client will be generated. For the cjwsimport command, see 14.1 cjwsimport command.

The following is an example for executing the cjwsimport command:

> cd c:\temp\jaxws\works\mtom\client\
> mkdir src\
> mkdir classes\
> "%COSMINEXUS_HOME%\jaxws\bin\cjwsimport.bat" -s src -d classes http://webhost:8085/mtom_dynamic_generate/UserInfoService?wsdl

On successful termination of the cjwsimport command, the Java source is generated in the c:\temp\jaxws\works\mtom\client\src\com\sample\ directory.

The following table lists the generated products:

Table 31-4 Products generated when the service class is generated (starting from SEI or attachments)

File name Explanation
GetUserData.java This is a JavaBean class corresponding to the type referenced by the wrapper element of the request message in the WSDL definition.
GetUserDataResponse.java This is a JavaBean class corresponding to the type referenced by the wrapper element of the response message in the WSDL definition.
ObjectFactory.java This is an ObjectFactory class of the JAXB 2.2 specifications.
package-info.java This is a package-info.java file.
UserData.java This is the UserData corresponding to
JavaBean class.
UserInfoImpl.java This is the SEI corresponding to 'Service' in the WSDL definition.
UserInfoService.java This is a service class.
UserInfoException.java This is a JavaBean class corresponding to UserInfoException.
UserInfoException_Exception.java This is a wrapper exception class of the fault bean.