uCosminexus Application Server, Web Service Development Guide

[Contents][Glossary][Index][Back][Next]

5.3.5 Creating a WSDL file (Optional)

Creating 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 already 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\fromwsdl\server\
> mkdir .\WEB-INF\wsdl\
> mkdir .\temporary
> "%COSMINEXUS_HOME%\jaxws\bin\cjwsgen.bat" -r .\WEB-INF\wsdl -d .\temporary -cp .\WEB-INF\classes com.sample.AddNumbersImpl
> rmdir /S /Q .\temporary

If the cjwsgen command is terminated successfully, the resource file is generated in the c:\temp\jaxws\works\fromjava\WEB-INF\wsdl directory. The following table lists the generated files:

Table 5-3 Files generated during the execution of the cjwsgen command

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 that is referenced from the WSDL file.

Delete the files generated in the c:\temp\jaxws\works\fromjava\temporary directory because the files are not required.