uCosminexus Application Server, Web Service Development Guide
If you execute the cjwsimport command, the Java source, such as a service class that is required for Web Service client development, is generated. For the cjwsimport command, see 14.1 cjwsimport command.
The following is an example of executing the cjwsimport command:
> cd c:\temp\jaxws\works\statelessjava\client\ > mkdir src\ > mkdir classes\ > "%COSMINEXUS_HOME%\jaxws\bin\cjwsimport.bat" -s src -d classes http://webhost:8085/statelessjava_dynamic_generate /AddNumbersImplService?wsdl |
On successful termination of the cjwsimport command, the Java source is generated in the c:\temp\jaxws\works\statelessjava\client\src\com\sample\ directory. Note that the directory path com\sample\ (the directory path corresponding to the package) changes according to the coding of the namespace URI. For mapping between namespace URIs and packages, see 15.1.1 Mapping a namespace to a package name.
The following table lists the generated products:
Table 8-4 Products generated when the service class is generated (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 an ObjectFactory class of the JAXB 2.2 specifications. |
| package-info.java | This is the package-info.java file. |
| AddNumbersImpl.java | This is the SEI corresponding to the "Service" of the WSDL definition. |
| AddNumbersImplService.java | This is a service class. |
| AddNumbersFault.java | This is a JavaBean class corresponding to AddNumbersFault. |
| AddNumbersFault_Exception.java | This is a 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.