Customizing the Web Interface Customizing the Rational Rhapsody Web Server You can customize the Rational Rhapsody Web server in two ways: Љ Using the Advanced Settings window Љ Editing the webconfig.c file To customize the Rational Rhapsody Web server, you can modify the webconfig.c file and add that file to your Web-enabled Rational Rhapsody model. The webconfig.c file is located within your Rational Rhapsody installation directory in Share\MakeTmpl\Web . The file is clearly commented before each function. To change the Web server settings, edit the argument of the function to the appropriate setting.
Because other models will use this file to configure Web server settings, copy the file to another directory within your Web-enabled project, for example, and edit that copy of the webconfig.c file. In the process of customizing your Web server, be sure to add it to the configuration of your active component from within the Rational Rhapsody interface. To add the modified webconfig.c file to your Web-enabled model: 1. In the browser of a working Rational Rhapsody model, navigate to Components > > Configurations . Select the active configuration. 2. On the Features window, on the Settings tab, in the Additional Sources box, type the location of the modified webconfig.c file.
The kit includes examples in the path>\Share\MakeTmpl\web\WebServerConfig directory. Note If you customize your Web server using the webconfig.c file, your changes will overwrite the properties set in the Advanced Settings window. Setting a Device Name To change the name of a device, modify the argument to the SetDeviceName method. For example, to change the setting of the device name to “Excellent Device”, modify the call as follows: SetDeviceName("Excellent Device"); See \Share\MakeTmpl\web\WebServerConfig\ ChangeDeviceName for an example. Rational Rhapsody 1193