DataSnap.Proxy Generator Sample

From Appmethod Code Examples
Jump to: navigation, search

This sample illustrates how to create a proxy generator for different programming languages.

Location

You can find the Proxy Generator sample project at:

Description

The Proxy Generator sample application is used to:

  • Generate proxy information for various programming languages.
  • Write the proxy information to a file or to a memo inside the application's main user interface.

How to Use the Sample

  1. Navigate to Start | Programs | Appmethod 1.14 | Samples, go to Object Pascal\DataSnap\ProxyGenerator, and open SampleProxyGenerator.dproj.
  2. Build SampleProxyGenerator.dproj.
  3. Run the application by selecting the Run > Run menu from within the IDE, or by hitting F9.
  4. Supply the host, protocol, port number, URL path.
  5. Select the language for which the proxy information will be generated.
  6. Specify whether the proxy will be written to a file or to the memo present on the main user interface.
  7. Click the Generate button. The proxy will be written to the selected file or the memo, depending on your selection.

Files

File Contains

FormUnit

The main form that constitutes the user interface for the Proxy Generator Sample.

ProxyGeneratorSettings

Contains code that implements save/load proxy generator settings to/from Registry.

SampleProxyGenerator

The project itself.

SampleProxyGeneratorUnit

Contains code that implements the proxy generator itself.

Classes

  • TMainForm is the main form that handles all display components.
  • TProxyGeneratorSettings implements save/load proxy generator settings to/from Registry.
  • TSampleProxyGenerator implements the proxy generator itself.

Uses

Code Examples

See Also