DataSnap.Proxy Generator Sample
From RAD Studio Code Examples
Language:
This sample illustrates how to create a proxy generator for different programming languages.
Location
You can find the Proxy Generator sample project at:
- Start > Programs > Embarcadero RAD Studio > Samples and then navigate to Delphi\DataSnap\ProxyGenerator
- Subversion Repository for Delphi: http://sourceforge.net/p/radstudiodemos/code/HEAD/tree/branches/RadStudio_XE4/Delphi/DataSnap/ProxyGenerator
Contents |
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
- Navigate to Start | Programs | Embarcadero RAD Studio | Samples, go to Delphi\DataSnap\ProxyGenerator, and open SampleProxyGenerator.dproj.
- Build SampleProxyGenerator.dproj.
- Run the application by selecting the Run > Run menu from within the IDE, or by hitting F9.
- Supply the host, protocol, port number, URL path.
- Select the language for which the proxy information will be generated.
- Specify whether the proxy will be written to a file or to the memo present on the main user interface.
- 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.