uCosminexus Application Server, Web Service Development Guide
Creation of a WSDL file during the development starting from SEI is optional, and if a file is created, include that file in an EAR file. This subsection describes an example of executing the WSDL generation functionality of the cjwsgen command to create a WSDL file from the compiled Java sources. For the cjwsgen command, see 14.3 cjwsgen command.
The following is an example of executing the cjwsgen command:
> cd c:\temp\jaxws\works\statelessjava\server\ > mkdir .\jar\META-INF\wsdl\ > mkdir .\temporary > "%COSMINEXUS_HOME%\jaxws\bin\cjwsgen.bat" -d .\temporary -cp .\jar com.sample.AddNumbersImpl > rmdir /S /Q .\temporary |
On successful termination of the cjwsgen command, a resource file is generated in the c:\temp\jaxws\works\statelessjava\META-INF\wsdl\ directory. The following table lists the generated products:
Table 8-3 Products generated when the cjwsgen command is executed
| File name | Description |
|---|---|
| AddNumbersImplService.wsdl | This is a WSDL file corresponding to the specified Java source. |
| AddNumbersImplService_schema1.xsd | This is an XML Schema definition referenced from the WSDL file. |
Delete the files generated in the c:\temp\jaxws\works\statelessjava\temporary\ directory as the files are not required.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.