uCosminexus Application Server, Web Service Development Guide
If you execute the cjwsimport command, the Java source, such as SEI that you require for developing Web Services, will be generated. For the cjwsimport command, see 14.1 cjwsimport command.
The following is an execution example of the cjwsimport command:
> cd c:\temp\jaxws\works\fromwsdl\server\ > mkdir src\ > mkdir WEB-INF\classes\ > "%COSMINEXUS_HOME%\jaxws\bin\cjwsimport.bat" -generateService -s src -d WEB-INF\classes WEB-INF\wsdl\input.wsdl |
If the cjwsimport command is terminated successfully, the Java source is generated in the c:\temp\jaxws\works\fromwsdl\server\src\com\example\sample\directory. The directory path com\example\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 4-3 Products during SEI generation (Starting from WSDL)
| File name | Description |
|---|---|
| JaxWsTest1.java | This is the JavaBean class corresponding to 'Type referenced by the wrapper element of the request message' in the WSDL definition. |
| JaxWsTest1Response.java | This is the JavaBean class corresponding to 'Type referenced by the wrapper element of the response message' 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. |
| TestJaxWs.java | This is an SEI corresponding to the TestJaxWsPort type. |
| TestJaxWsImpl.java | This is a skeleton class corresponding to the TestJaxWsPort type. |
| UserDefinedFault.java | This is the JavaBean class (fault bean) corresponding to 'Type referenced by the wrapper element of the fault message' in the WSDL definition. |
| UserDefinedException.java | This is the wrapper exception class of the fault bean. |
The file names JaxWsTest1, TestJaxWs and TestJaxWsImpl change according to the coding of the local name for operation, local name for port type, and local name for services. For the mapping between a local name for operation, local name for port type, and local name for services and Java sources, see 15. Mapping WSDL to Java.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.