Generator Options
The rwsfgen program accepts the options listed in Table 13 :
Table 13 – Code generator options 
-projectname name
Specify a name for the project. This option results in a HydraExpress project file named name. Required.
no arguments or -help
Entering rwsfgen with no arguments, or with -h or with -help launches usage information or “help” for the rwsfgen program. The output lists all optional arguments included in this table. This is a command line option only.
Disable file and directory cleanup at the end of the code generation. This can be useful for troubleshooting. Default is -clean.
Do not generate client-side code or a sample application for the client. Default is -client.
Do not generate HTML pages that document the generated classes. For large schemas, specifying this option may greatly reduce code generation time. Default is -html.
Do not generate a makefile. Default is -make.
Do not generate a sample client or a sample service implementation. Default is -sample.
Do not generate server-side code or a server implementation. Default is -server.
Control whether the xsi:Type attribute is present in the controlling child elements of complex types. Default is -nochildtypeattr. (Applicable only to schema types that appear in Web service messages.)
Control whether code generation halts when it encounters an error, or goes ahead and generates code. May be useful to ensure code generation for known schema errors (for instance, in the event that they occur in an unused part of the schema). Default is -haltonerror.
Specify file containing the datamap used for XML Schema to C++ datatypes. Note: This option overrides -sourcepro and -stl. See “Creating Customized Mappings,” in the HydraExpress XML Binding Development Guide.
Specify a name for the log file. Default is rwsfgen.log.
Specify a specific name for the generated makefiles. Useful to distinguish between makefile names if generating a project with multiple compilers.
-maxgentypes <some_number>
Restrict the number of generated types to be included in a single library. This option is useful for very large, complex schemas that generate more types than some compilers and OS combinations can link. The provided argument specifies the number of types to be included in a single library, so that multiple libraries are created.
Specify that anonymous types in the schema are named “AnonymousType_” with sequential numbering suffixes. This provides a workaround for deeply-nested anonymous definitions that may result in C++ and file name identifiers longer than a compiler or operating system allows. Default is -noordinalanonymous.
-outdir <directory>
Put generated files in <directory>. Can be an absolute or a relative path. Default is to generate files in existing directory.
-rwsfhome <path>
Specify the RWSF_HOME directory.
Generate code for complex types in the SOAP encoding namespace. Default is -nosoapenc.
Map XML Schema types to SourcePro C++ classes. For a complete list of the SourcePro C++ type mappings, see Simple Types,” in the HydraExpress XML Binding Development Guide.
Default is -nosourcepro.
Use a type mapping based on Standard C++ Library classes rather than SourcePro C++ classes. This is the default. For a complete list of the STL type mappings, see “Simple Types,” in the HydraExpress XML Binding Development Guide. This is the default binding. Default is -stl.
Generate a sample standalone server for running the Web service independent of the HydraExpress Agent. Default is -nostandalone.
By default, HydraExpress generates classes for the top-level elements in a schema. If the -notoplevelclasses is used, HydraExpress instead generates a convenience class, MySchemaStatics, that contains static variables of the element names so the corresponding type classes can easily marshal the elements. Default is -toplevelclasses.
By default, the rwsf::XmlWriter created for marshaling datatypes eliminates all unnecessary whitespace. This improves performance but makes the document difficult to read. If your output documents need to be human readable, specify -whitespace to preserve whitespace such as line breaks and indentations. Default is -nowhitespace.
Enable the wrapped style as described in Wrapped Style Operations. Default is -nowrapped.
Output informational messages to the console. Default is -noverbose.
Print the HydraExpress version number and exit.

1 The -stl and -sourcepro options affect only the mappings of built-in schema types. Code generated with the -sourcepro option will still contain Standard Library classes for some of its implementations.