uCosminexus Application Server, Web Service Development Guide
Execute the cjwsgen command to add the Java code required for developing Web Services, and if required, generate resource files (WSDL and XML Schema definition) that indicate the meta information of the Web Services.
The following is an example for executing the cjwsgen command to generate resource files:
> cd c:\temp\jaxws\works\wsgen\server\ > "%COSMINEXUS_HOME%\jaxws\bin\cjwsgen.bat" -r WEB-INF\wsdl -d WEB-INF\classes -cp WEB-INF\classes com.sample.AddNumbersImpl |
If the cjwsgen command is terminated successfully, Java source is generated in the c:\temp\jaxws\works\wsgen\server\WEB-INF\classes\com\sample\ directory. Note that com\sample\ (directory path corresponding to the package) changes depending on the coding of namespace URIs. For the mapping between namespace URIs and packages, see 15.1.1 Mapping a namespace to a package name.
The following table lists the generated files:
Table 6-3 Files generated during the generation of Java sources (Starting from SEI or the cjwsgen command)
| File name | Description |
|---|---|
| Add.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the request message in Operation of the WSDL definition. |
| AddResponse.java | This is the JavaBean class corresponding to the type referenced by the wrapper element of the response message in Operation of the WSDL definition. |
| AddNumbersFaultBean.java | This is the JavaBean class corresponding to AddNumbersFault of the exception class. |
The file names Add and AddNumbersFault change according to the coding of the method name and local name of the port type published in Web Services Implementation Class, and the class names of the exceptions to be thrown in the Web Services Implementation Class. For mapping local names of the operations, see 15.1.3 Mapping an operation to a method name.
Note that the resource files are generated in the c:\temp\jaxws\works\wsgen\WEB-INF\wsdl\ directory.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.