Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
HydraExpress XML Binding Development Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

5.4 Generate Code

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

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

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

  4. 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\tutorials\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's 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, Section 22.2, "The Project File," in the HydraExpress Web Service Development Guide.

    For complete information about the command-line options, see Section 21.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 our 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\tutorials\xmlbinding\soap. Copy these provided files and the file soap.xml into the soapExample\app\data directory before compiling.



Previous fileTop of DocumentContentsIndex pageNext file

©2004-2007 Copyright Quovadx, Inc. All Rights Reserved.
Quovadx and Rogue Wave are registered trademarks of Quovadx, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.