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 developing a Web Service client is generated. For details about the cjwsimport command, see the section 14.1 cjwsimport command.
The following is an example of the execution of the cjwsimport command:
> cd c:\temp\jaxws\works\addressing\client\ > mkdir src\ > mkdir classes\ > "%COSMINEXUS_HOME%\jaxws\bin\cjwsimport.bat" -s src -d classes http://webhost:8085/addressing_dynamic_generate/AddNumbersImplService?wsdl |
If the cjwsimport command is terminated successfully, the Java source is generated in the c:\temp\jaxws\works\addressing\client\src\com\sample\ directory.
The following table lists the products:
Table 33-3 Products during service class generation (Starting from SEI and addressing)
| File name | Explanation |
|---|---|
| Add.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the request message of operation in the WSDL definition. |
| AddResponse.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the response message of operation in the WSDL definition. |
| Add2.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the request message of operation in the WSDL definition. |
| Add2Response.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the response message of operation in the WSDL definition. |
| Add3.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the request message of operation in the WSDL definition. |
| Add3Response.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the response message of 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. |
| AddNumbers.java | This is the Service Endpoint Interface (SEI) corresponding to service in the WSDL definition. |
| AddNumbersImplService.java | This is a service class. |
| AddNumbersFault.java | This is the JavaBean class corresponding to AddNumbersFault in the WSDL definition. |
| AddNumbersFault_Exception.java | This is the wrapper exception class of the fault bean. |
The file names Add, AddNumbersImpl, and AddNumbersImplService change as per the coding of the local names in operation, port type, and service. For details about mapping of the local names in operation, port type, and service, see the following sections:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.