Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress XML Binding Development Guide

5.4 Generate Code

  1. Follow the instructions in Chapter 2, "Setup," in the HydraExpress User Guide to set up your environment.

  2. Open a command prompt and navigate to the directory installdir\examples\xmlbinding\soap\.

  3. Invoke the code generator, using the command below:

    HydraExpress generates code into a separate code generation directory soapExample based on the provided project name in the HydraExpress project file example-project.xml. This file identifies both the soap.xsd and trade.xsd as arguments to the code generator and also contains the customized mapping discussed in Section 5.3. This file is provided for you in the directory installdir\examples\xmlbinding\soap. For more information on the use of HydraExpress project files in shipped examples, see Section 1.5.1, "The Use of the HydraExpress Project File in Shipped Examples," in the HydraExpress User Guide.

    At code generation, HydraExpress creates the HydraExpress project file soap.xml in the top-level code generation directory, appending the contents of example-project.xml, as well as other generation properties. For more information on the project file, see Section 21.2, "The Project File," in the HydraExpress Web Service Development Guide.

    For complete information about the command-line options, see Section 20.6, "Generator Options," in the HydraExpress Web Service Development Guide

5.4.1 Generator Output

The code generator places the generated files into a directory tree under the main code generation directory. For a description of the code generation directory structure and the types of files generated, see the output description for the Basic example in Section 3.3.3, "Generated Files."

Note the generated files soap_main.cpp and trade_main.cpp in the soapExample\app\data directory. You can create an application main by editing either of these file. Replace the TODO items with your application logic. Compile the application as described in Section 5.7.

The example descriptions assume use of the implemented versions of soap_main.cpp and trade_main.cpp located in the directory installdir\examples\xmlbinding\soap.



Previous fileTop of DocumentContentsNo linkNext file

Copyright © Rogue Wave Software, Inc. All Rights Reserved.

The Rogue Wave name and logo are registered trademarks of Rogue Wave Software, and HydraExpress is a trademark of Rogue Wave Software. All other trademarks are the property of their respective owners.
Provide feedback to Rogue Wave about its documentation.