uCosminexus Application Server, Web Service Development Guide
If you execute the cjwsimport command, the Java source, such as service class, required for Web Service client development, 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\fromjava\client\ > mkdir src\ > mkdir classes\ > "%COSMINEXUS_HOME%\jaxws\bin\cjwsimport.bat" -s src -d classes http://webhost:8085/fromjava_dynamic_generate /AddNumbersImplService?wsdl |
If the cjwsimport command is terminated successfully, the Java source will be generated in the c:\temp\jaxws\works\fromjava\client\src\com\sample\directory. Note that com\sample\(directory-path-corresponding-to-the-package) changes as per the coding of the namespace URI. For the mapping between namespace URIs and packages, see 15.1.1 Mapping a namespace to a package name.
The following table lists and describes the products:
Table 5-4 Products during service class generation (Starting from SEI)
| File name | Description |
|---|---|
| Add.java | This is a JavaBean class corresponding to the type referenced by the wrapper element of the request message for 'Operation' in the WSDL definition. |
| AddResponse.java | This is a JavaBean class corresponding to the type referenced by the wrapper element of the response message for 'Operation' in the WSDL definition. |
| ObjectFactory.java | This is the ObjectFactory class of the JAXB 2.2 specifications. |
| package-info.java | This is the package-info.java file. |
| AddNumbersImpl.java | This is SEI corresponding to 'Service' in the WSDL definition. |
| AddNumbersImplService.java | This is the service class. |
| AddNumbersFault.java | This is the JavaBean class corresponding to AddNumbersFault. |
| AddNumbersFault_Exception.java | This is the wrapper exception class of the fault bean. |
The file names Add, AddNumbersImpl, and AddNumbersImplService change according to the coding of the local name for operation, local name for port type, and local name for services. For the mapping of a local name for operation, local name for port type, and local name for services, see the following sections:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.