HydraExpress : HydraExpress User Guide : PART I Introduction : Introduction : Shipped Examples : The Use of the HydraExpress Project File in Shipped Examples
The Use of the HydraExpress Project File in Shipped Examples
A HydraExpress project file is provided with each shipped Web service and XML binding example to ensure that the example runs correctly.
Each example includes the XML Schema file(s) or WSDL file(s) to be provided to the code generator, in addition to any options recommended or required by the particular example. For instance, most example-project.xml files set whitespace=true, which results in more easily-read output.
Using the example-project.xml file as an argument to the code generator invokes the generator in exactly the same way as including each option separately on the command line.
For example, invoking the code generator with:
 
prompt>rwsfgen example-project.xml
where the example-project.xml file is this:
 
<rwsf-codegen-project>
<options>
<option name='project-name' value='MyProject'/>
<option name='whitespace' value='true'/>
</options>
<files>
<inputSchema file='po.xsd'/>
</files>
</rwsf-codegen-project>
is exactly the same as invoking the following:
 
prompt>rwsfgen -projectname MyProject -whitespace po.xsd
For the shipped examples, we recommend the use of the provided project files. For your own projects, you have the choice to create customized project files to include various options or to manually enter files and options at the command prompt.
For more information on the HydraExpress project file, see “The Project File” in the HydraExpress Web Service Development Guide.