Invoking the Generator
Make sure that you have set up your environment as described in Chapter 2, Setup in the HydraExpress User Guide.
Change the current directory to the examples\webservices\DayOfWeek directory under the RWSF_HOME directory, as shown below:
Windows
cd %RWSF_HOME%\examples\webservices\DayOfWeek
UNIX/Linux
cd $RWSF_HOME/examples/webservices/DayOfWeek
In addition to the DayofWeek WSDL and the provided implementation files, this directory contains a HydraExpress project file, example-project.xml. This file provides custom configuration information to the generator. (For more information on the HydraExpress project file, see Chapter 21, The Project File and Directory Structure.
If you open this file, you’ll note that it identifies a value for the project-name attribute and a files element that references the DayofWeek.wsdl, so there is no need to include these items on the command line if this file is provided to the generator.
Run rwsfgen with example-project.xml as the sole argument, as follows:
 
prompt> rwsfgen example-project.xml
The above invocation is exactly the same as the following:
 
prompt> rwsfgen -projectname DayOfWeekExample -whitespace DayofWeek.wsdl
The two required options above are -projectname and the name of the file to parse.
NOTE: If you are creating only a service, you may use the option -noclient to generate only server-side code.
HydraExpress generates server and client-side code, sample applications, configuration files, makefiles, MSVC project files, and documentation into a directory DayOfWeekExample, using the options included in the example-project.xml file.
Files are separated into several subdirectories according to type, as shown below.
 
DayOfWeekExample/
app/
client
server
bin
codegen/
client
server
conf
docs
include/
DayOfWeekExample
lib
This example is also used in Chapter 7 to discuss client code. See Table 5 for a list of generated files.